WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] Only Showing One Page of Excerpts (9 posts)

  1. ryseale
    Member
    Posted 9 months ago #

    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/

  2. ryseale
    Member
    Posted 9 months ago #

    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!

  3. jinwha
    Member
    Posted 8 months ago #

    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?

  4. jinwha
    Member
    Posted 8 months ago #

    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?

  5. jinwha
    Member
    Posted 8 months ago #

    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.

  6. ryseale
    Member
    Posted 8 months ago #

    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

  7. jinwha
    Member
    Posted 8 months ago #

    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.

  8. keesiemeijer
    moderator
    Posted 8 months ago #

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

  9. ryseale
    Member
    Posted 8 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic