Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If you edit the category.php template file you can do a custom query to get back exactly the number of posts you want. You would put this code just before the loop.
- Get back 10 posts from current category:
- query_posts( array ( 'category_name' => single_cat_title( '', false ), 'posts_per_page' => 10 ) );
- Get back all posts from current category:
- query_posts( array ( 'category_name' => single_cat_title( '', false ), 'posts_per_page' => -1 ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement