I use this code to pull the latest posts:
<?php
define('WP_USE_THEMES', false);
require('../blog/wp-load.php');
query_posts('showposts=10');
?>
What would I add to this to only display a certain category?
I use this code to pull the latest posts:
<?php
define('WP_USE_THEMES', false);
require('../blog/wp-load.php');
query_posts('showposts=10');
?>
What would I add to this to only display a certain category?
How about something like this:
http://codex.wordpress.org/Function_Reference/query_posts#All_Posts_in_a_Category
but instead of all post, just pick 10 or 5.
You must log in to post.