Originally Posted by Jordan
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