Support » Plugin: WP-PageNavi » Page 2 in Search Pagination not working

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Hmm is it a custom coded theme or the theme is from somewhere else? If it is the later, I think you should contact the theme author.

    If you coded the theme yourself, I am thinking the form parameters might be wrong.

    You may want to read the documentation http://codex.wordpress.org/Creating_a_Search_Page

    Hmm.. I even tried it with the wordpress default theme twenty fourteen and it is the same issue. Does this plugin work in nginx or do you need special rewrites?

    Plugin Author Lester Chan

    (@gamerz)

    Hmm it doesn’t use rewrite. It is more of a front end thing, it makes use of core WP functions to link the page.

    Can you try http://codex.wordpress.org/Next_and_Previous_Links to see if it works?

    Tried the Next and Previous links too .. It’s the same issue with the second page for search pages. I am not sure if it has something to do with the page/2/ Permalink. When I switched the permalink setting to default it works fine.

    Plugin Author Lester Chan

    (@gamerz)

    Next/Previous links function are from the default WordPress functions, so unlikely it is wrong.

    So what is the code you are using for the search page? Are you placing the navi code outside of the loop?

    I tried several different themes and it is the same issue. The navi code is inside the loop. I don’t think it is WP Page Navi’s issue, it is a wordpress issue.
    Thanks.

    <?php

    while ( have_posts() ) : the_post();
    get_template_part( ‘content’, get_post_format() );
    endwhile;
    // Previous/next page navigation.
    <?php wp_pagenavi(); ?>
    else :
    // If no content, include the “No posts found” template.
    get_template_part( ‘content’, ‘none’ );
    endif;
    ?>

    Plugin Author Lester Chan

    (@gamerz)

    That actually looks ok to me, maybe you can try posting in the general troubleshooting forums =)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page 2 in Search Pagination not working’ is closed to new replies.