Hack number of posts on category
-
I have read many posts and found plugins to show all posts on a category page, but i am looking at doing the following scenario and wondered if anyone know a code hack to get the desired result?
I will be setting up a custom category page which will pull say 3 of the most recent posts in that category and a specific post as a featured post for example.
I would then like to link to category/page/2 from the category and page 2 will display all posts.
I tried using the following in the category template, but it doesnt seem to work:
<?php if( is_category(‘1’) & ($paged = 2) ) query_posts($query_string . “&posts_per_page=500”); ?>
Does anyone have any ideas please?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hack number of posts on category’ is closed to new replies.