WordPress.org

Ready to get started?Download WordPress

Forums

Next Page, Not Next Post
Unexpectedly, previous_page_not_post() goes to nephew page (i.e. (2 posts)

  1. CarolineElisa
    Member
    Posted 1 year ago #

    Useful plugin thanks! Just one thing...

    On this page, previous_page_not_post() goes to a "nephew" page (last child of previous sibling page) not to the previous sibling page:

    http://p3rpublicity.com/wordpress/practice-areas/corporate-communications-pr/

    How can I keep this within one generation?

    Thanks!

    http://wordpress.org/extend/plugins/next-page-not-next-post/

  2. CarolineElisa
    Member
    Posted 1 year ago #

    Ok, I have this:

    <?php echo previous_page_not_post('','false','sort_column=menu_order&child_of='.$post->post_parent.'&parent='.$post->post_parent.'') ?>

    But whether I leave the loop parameter empty or set it to false as above the first page still loops back round to the last page.

    Hmmm.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.