WordPress.org

Ready to get started?Download WordPress

Forums

[Mandigo] Pagination fails on custom page/category page (5 posts)

  1. jrodgers
    Member
    Posted 5 years 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.

  2. richarduk
    Member
    Posted 5 years 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

  3. jrodgers
    Member
    Posted 5 years ago #

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

  4. richarduk
    Member
    Posted 5 years 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

  5. piechdibi
    Member
    Posted 5 years 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)

  6. piechdibi
    Member
    Posted 5 years 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)

Topic Closed

This topic has been closed to new replies.

About this Topic