Pagination on Categories won't show up (2 posts)

  1. aclight
    Posted 2 years ago #

    I've browsed several similar posts on here, but I still can't find the answer.

    I tried adding "$paged" variables (tried both "paged" and "page") and it didn't show up.

    I know that my category.php file is affecting the page because when I tried to a query_posts I could successfully change the number of posts shown, but I can't get pagination to show up!

    I've already spent over an hour trying to fix this problem, but nothing seems to work...

    PasteBin Example

    I should also note that I used the Themble Bones theme as a base template.


  2. Michael
    Part-Time Forum Moderator
    Posted 2 years ago #

    using the '$query_string' method should work without the added 'paged'. try to add global $query_string; before the line;

    global $query_string;
           query_posts( $query_string . '&posts_per_page=10' );


    better, the correct method for changing the 'posts per page' for the category archive would be to use a 'pre_get_posts' action;

    please contact your theme's developer for support if this does not work; this forum only supports themes from http://wordpress.org/themes/

Topic Closed

This topic has been closed to new replies.

About this Topic