Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #3130


    Pagination is not working viewing categories. The buttons at the bottom (1,2,3,etc) shows up, and will take you to the correct page /page/2/ but that page will display the same 10 posts as the first page.


    Only change I have done for this “Knee-faq” category is to make order=ASC.

    From archive.php:

    <div class=”archiveentry entry”>


    if ( is_category(array(14,16,17)) ) {

    $category = get_the_category();



    if (have_posts()) :

    while (have_posts()) : the_post();

    $more = 0;

    $extraclass = ‘noImage’;

    $terms = get_the_term_list( $post->ID, ‘portfolio_entries’, ”, ‘, ‘, ” );



    I made various tests with avisio and my test server and I couldn’t reproduce the pagination problem.

    1) Check if you use any redirection plugins, etc. – the often break pagination

    2) I don’t understand what you’re trying to achieve here. You don’t need to check the category because an archive page displays only one category if the user selects only one category. WP will query a certain category. I think you can replace the code above:

    if ( is_category(array(14,16,17)) ) {
    $category = get_the_category();


    if ( is_category(array(14,16,17)) ) {
    query_posts($query_string . '&order=ASC');

    and it will do exactly the same and maybe even solve the pagination problem…

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Pagination not working’ is closed to new replies.