jrodgers
Member
Posted 10 months ago #
I have set up a category page in the mandigo theme
category-4.php
with the following
query_posts('posts_per_page=16'); // user wants 16 posts on this page only
and another category page
category-5.php with no code changes
in both cases when using the pagination options at the bottom of the page the content remains the same, the output offset does not seem to be getting processed, however it is precessed on the (default) home page which was used as the base of the category pages.
richarduk
Member
Posted 10 months ago #
According to http://codex.wordpress.org/Template_Tags/query_posts
it should be `query_posts($query_string.'&posts_per_page=16');
`
If it's not that simple then if you're using 2.7 I've seen a couple of others have had the same problem
jrodgers
Member
Posted 10 months ago #
didn't work, now i am getting no posts showing on the page
richarduk
Member
Posted 10 months ago #
Have you tried this variation on a theme, using showposts?
<?php query_posts($query_string . '&order=DESC&showposts=16&cat=7'); ?>
Alternatively, check in the admin page where it says how many posts per page are - try changing that number around and see what happens
piechdibi
Member
Posted 9 months ago #
Thank you ! This solved my case !
by putting :
<?php query_posts($query_string . '&showposts=6&cat=10'); ?>
I got only 6 posts of my category 10, and the navigation links worked ! (no need for order=DESC though)
piechdibi
Member
Posted 9 months ago #
Thank you ! This solved my case !
by putting :
<?php query_posts($query_string . '&showposts=6&cat=10'); ?>
I got only 6 posts of my category 10, and the navigation links worked ! (no need for order=DESC though)