• Resolved ryseale

    (@ryseale)


    Hello gang,

    I’ve been having trouble getting Page-Navi pagination to work correctly. I am working with a blank template that I’ve worked on. I don’t think the problem is with the PlugIn but more with how I’ve written the code.

    Here’s the problem: Despite calling and showing the posts, as well as the pagination at the bottom of the page, it only shows the SAME, latest 10 posts no matter which pagination page you select. I’ve seen some other topics with similar problems but haven’t been able to copy the solutions and I believe it my be my code.

    Despite the URL changing, and it showing, for example, page 7, its the same results as page 1.

    Any suggestions?! I’d really appreciate it!

    Thanks

    Here’s the code:
    http://pastebin.com/embed_js.php?i=Zx93PC6H

    http://wordpress.org/extend/plugins/wp-pagenavi/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter ryseale

    (@ryseale)

    live page:

    http://www.marlinorchards.com/posts/uncategorized/page/5/

    Also: Despite showing PAGE 5 in the URL, the pagination is showing PAGE 1 as active.

    🙁

    HELP!

    Hi There.

    I have used this plugin before with no problems. But sadly on my latest site I am having the same problem even when reusing code which worked previously.

    Any Ideas, is this plugin broken in the new version of WP?

    Update.

    I have spent hours reading through posts on the net on this subject and despite my best efforts I cannot get this to work.

    The problem seems to lie in:
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    as this variable only ever has a value of 1 even though the page/number displays correctly in the url.

    I’ve tried:
    $paged = (get_query_var(‘page’)) ? get_query_var(‘page’) : 1;
    same result.

    and various positions of wp_reset_query();

    What little hair I have left is now being pulled out.

    Can anyone point me in the right direction?

    Hi All.

    For anyone who is looking for this.

    In my case the problem was being caused by the page slug.

    I had the search results page name and the page’s slug set to the same and this was causing a conflict with the .htaccess file rewrite rules and breaking the pager variable.

    Hope this helps someone.

    Thread Starter ryseale

    (@ryseale)

    Hello jinwha!

    Any idea why my page isn’t showing Pagination?!

    This is the PasteBin link: http://pastebin.com/P170mUx9

    Here is the page missing the Pagination: http://www.tartanhomecomfort.com.php53-6.ord1-1.websitetestlink.com/latest/protips/

    Please help!

    Thanks,

    Ryan

    Hi Ryan.

    Try wrapping the page-navi in a div ( for testing ) and try using: if(function_exists(‘wp_pagenavi’)) {
    wp_pagenavi();
    echo “it works”;}
    If it dont do the echo you know the function is not being called.
    Also try disabling the side bar to see what happens.

    Moderator keesiemeijer

    (@keesiemeijer)

    What number is the “Blog pages show at most” in wp-admin > Settings > Reading? Do you have more pro tips posts than that setting?

    Thread Starter ryseale

    (@ryseale)

    Bingo!

    It was the Reading setting. I had it too high for the amount of posts I actually had. So simple, but over looked. I really appreciate the help!

    Take care,

    Ryan

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Only Showing One Page of Excerpts’ is closed to new replies.