WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] works on main pages, but not for next-page (14 posts)

  1. Moogle Stiltzkin
    Member
    Posted 3 years ago #

    For example,

    when you add new posts, it will eventually go to the next page. it works there.

    But when you do a next-page inside 1 post, it does not paginate that using page-navi, only the regular default pagination.

    So how do i get page-navi to work for page-breaked posts/pages as well ?

  2. noski2009
    Member
    Posted 3 years ago #

    Hi Moogle,

    Did you ever find a solution?

    thanks,

  3. Moogle Stiltzkin
    Member
    Posted 3 years ago #

    Yes.

    I asked my theme author for help and he gave me a suggestion to add some code to my css.

    So now i have pagination for split pages which is separate from pagenavi.

    Pagenavi handles pagination for main pages and posts on website.

    But split post pagination is handled by this extra pagination code i set.

    You can see the example over at my website [link moderated - it does not contain any solution to this thread]

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

  5. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    The Development Version (2.80-alpha) of WP-PageNavi handles this.

  6. Moogle Stiltzkin
    Member
    Posted 3 years ago #

    Hi scribu,

    Is there a webpage for this pagenavi development version ?

  7. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Not yet. Just the download link.

  8. Moogle Stiltzkin
    Member
    Posted 3 years ago #

    well i'll test it out. Thx.

  9. Moogle Stiltzkin
    Member
    Posted 3 years ago #

    Hi scribu,

    I deleted the old version, installed the new but i did not see the page breaked pages using the page navi.

    Could you take a look at my code ?

    Whats your email.

  10. Moogle Stiltzkin
    Member
    Posted 3 years ago #

    I had to add back zwoo's code to my style.css to have custom pagination for it for the meanwhile :x

    /* Pagination for split posts */
    
    .entry .page_link{
        margin-bottom: 10px;
    }
    
    .entry .page_link a, .entry .page_link a:link {
        padding: 4px 6px 4px 6px;
        margin: 2px;
        text-decoration: none;
        border: 1px solid #e7e7e7;
        color: #1d8dcb;
        background-color: #FFFFFF;
    }
    .entry .page_link a:visited {
        padding: 4px 6px 4px 6px;
        margin: 2px;
        text-decoration: none;
        border: 1px solid #e7e7e7;
        color: #1d8dcb;
        background-color: #FFFFFF;
    }
    .entry .page_link a:hover {
        border: 1px solid #3b3b3b;
        color: #3b3b3b;
        background-color: #FFFFFF;
    }
    .entry .page_link a:active {
        padding: 4px 6px 4px 6px;
        margin: 2px;
        text-decoration: none;
        border: 1px solid #e7e7e7;
        color: #e56100;
        background-color: #FFFFFF;
    }
  11. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    I forgot to mention that you have to modify your theme's page.php file:

    Replace this:

    <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>

    with this:

    <?php wp_pagenavi(); ?>
  12. Moogle Stiltzkin
    Member
    Posted 3 years ago #

    *face palm

    Let me give that a shot :x

  13. Moogle Stiltzkin
    Member
    Posted 3 years ago #

    Nope still not working :{

    My theme is Zbench.

  14. Alex Vojacek
    Member
    Posted 2 years ago #

    In my case, just had to put that line in single.php since my template does use that php file to properly display post articles, not pages.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic