Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2308 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Development Software and Tools :

Is it just me, or does wordpress suck form a coding standpoint?

Thread title: Is it just me, or does wordpress suck form a coding standpoint?
Reply    
    Thread tools Search this thread Display Modes  
12-07-2010, 08:23 PM
#1
Jordan is offline Jordan
Jordan's Avatar
Status: #pugs {display: block;}
Join date: Jan 2007
Location: Chicago
Expertise: CSS, HTML, PHP
Software: Sublime Text 2
 
Posts: 1,187
iTrader: 7 / 100%
 

Jordan is on a distinguished road

  Old

Yeah, I think you're just complaining about WordPress because you've just got an issue with not really knowing much about it.

Here is a query to grab the latest five posts. There are a bunch of other parameters that you can use with it as well.

Code:
<?php query_posts('showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
  <li><a href="<?php the_permalink(); ?>">
       <?php the_title(); ?></a></li>
<?php endwhile; ?>
http://codex.wordpress.org/Function_...ce/query_posts

Refer to the codex for anything you don't know about. Or just PM me and I can help you out with finding what you would need to use.

12-07-2010, 08:34 PM
#2
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

Originally Posted by Jordan View Post
Yeah, I think you're just complaining about WordPress because you've just got an issue with not really knowing much about it.

Here is a query to grab the latest five posts. There are a bunch of other parameters that you can use with it as well.

Code:
<?php query_posts('showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
  <li><a href="<?php the_permalink(); ?>">
       <?php the_title(); ?></a></li>
<?php endwhile; ?>
http://codex.wordpress.org/Function_...ce/query_posts

Refer to the codex for anything you don't know about. Or just PM me and I can help you out with finding what you would need to use.
That's not the issue, I have the code I need and it works great inside my template. The issue is that I need to use that function outside of wordpress on a non-wordpress page. The function I need is located in wp-includes/post.php, which requires wp-includes/wp-db.php, which requires wp-includes/load.php, which requires wp-includes/functions.php, which requires wp-config.php, which for no apparent reason 302 redirects me to wp-admin/install.php

Here is the blog (see the "latest news article" section on the bottom):
http://67.227.152.40/~anaverag/dir/blog

Here is the hard coded part outside of the blog:
http://67.227.152.40/~anaverag/dir/index.php

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed