WordPress.org

Ready to get started?Download WordPress

Forums

Previos Page | Next Page Navigation (not posts) within Children (7 posts)

  1. chocobo2k
    Member
    Posted 5 years ago #

    Hi, I know this topic has been discussed several times. I checked forum posts before I come and I ask here. I am using WordPress 2.7 as a blog and CMS. I have a set of pages with their children organized in a hierarchy like this

    Disease Categories
    -Disease1
    --Disease 1A
    --Disease 1B

    -Disease2
    --Disease 2A
    --Disease 2B

    and so forth. You've probably figured it out already. I am designing a pathology page for my students. I want to have a simple previous page, next page navigation at the end of each page that let the student (user) move to the next page as if he/she was reading a book. I am not an expert in php scripting but I understand what loop is and how to edit template files so I can probably do it if someone helped me out.
    So far this has been impossible to implement at least for me.

    I checked the following solutions.
    1. http://wordpress.org/support/topic/218965
    Did not work for me

    2. http://wordpress.org/support/topic/43071
    The plugin by Kafkaesqui worked but it jumps between parents not children. However, in the same post, the user apeatling has modified the plugin to let children have previous next navigation. Unfortunately, when I try to download the plugin or view the source could I get error 500.

    3. I landed on this page http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/
    Which explains how to do it but it didn't work for me for some reason.

    4. The function wp_link_pages() has become deprecated http://codex.wordpress.org/Template_Tags/link_pages
    and the solutions did not work anymore.

    I am kinda lost here. It is very easy to navigate through posts but how can I achieve this navigation in children in pages. I love WordPress. Please help me.

  2. Matt McInvale
    Member
    Posted 5 years ago #

    I just wrote up a very simple plugin to do this for a client site. If you still need help with this, drop me a message.

  3. frodoschering
    Member
    Posted 5 years ago #

    After 2 days of searching and pulling my hair I also found Kafkaesqui plugin which works great but I also need to limit it to an specific parent page. Apeatlings modification sounds like exactly what I need but the link is broken and the topic is closed.

    If you have a similar solution mcinvale, I would love to hear about it!

    Thanks in advance.

  4. Matt McInvale
    Member
    Posted 5 years ago #

    Shoot me an email mcinvale@binarym.com

    Subject: Next Page, Not Next Post.

  5. Matt McInvale
    Member
    Posted 5 years ago #

  6. jasotasticon
    Member
    Posted 5 years ago #

    mcinvale

    Your plugin is exactly what I need! Special thanks to cool people like you who figure things like this out for the rest of us!

    Unfortunately I can't get the plugin to work : (

    I am sure I am doing something wrong, but can't figure out what it could be.

    I am on a 2.7.1 install, and have placed this code in my template:

    <?php echo next_page_not_post('next page'); ?>
    <?php echo previous_page_not_post('previous page'); ?>

    no text or links show up?

    what could I be missing??

  7. Matt McInvale
    Member
    Posted 5 years ago #

    That should do it for you. Can you send me the URL of your install and your template file?

Topic Closed

This topic has been closed to new replies.

About this Topic