WordPress.org

Support

Support » How-To and Troubleshooting » [Mandigo] Pagination fails on custom page/category page

[Mandigo] Pagination fails on custom page/category page

  • 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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    didn’t work, now i am getting no posts showing on the page

    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

    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)

    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)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Mandigo] Pagination fails on custom page/category page’ is closed to new replies.
Skip to toolbar