WordPress.org

Ready to get started?Download WordPress

Forums

Parent / Child Secondary Nav Links (3 posts)

  1. dmt
    Member
    Posted 4 years ago #

    The best example I found is this page:
    http://2ammedia.co.uk/search-engine-optimisation-seo

    The Parent Page is 'SEO' and it is showing on the left 'SEO' as active page and also lists it's child pages.

    I can get my child pages to list in my sidebar, but can't get it to show the current parent page, too.

    So basically right now I'm getting everything in my sidebar accept what is 'SEO' on their page.

  2. davidandre
    Member
    Posted 4 years ago #

    Hi dmt,
    I am not sure i understand want to want . Do you to appears the content of the parent page in the child pages?

    In this case you could try with:
    <?php get_page( $page_id ) ?>

  3. dmt
    Member
    Posted 4 years ago #

    I just need the parent page to show in the menu in the sidebar. I can pull child links automatically, but can't get it to show the parent page link as well on the side.

    EXAMPLE:

    MAIN NAVIGATION: HOME PARENT1 PARENT2

    SIDEBAR NAVIGATION:
    (What I want) PARENT1 CHILDofPARENT1 CHILDofPARENT1

    (Currently I can only get) CHILDofPARENT1 CHILDofPARENT1 (no parent)

Topic Closed

This topic has been closed to new replies.

About this Topic