WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Sidebar Menu
[resolved] How to not show all parent and children when on child page? (4 posts)

  1. twicedaily
    Member
    Posted 2 years ago #

    I am wondering if there is a way to not show all parent and child items when on a child page.

    For example I have Page A with a child Page 1 and Page B with a child Page 2. When I am on Page A, I see the link the Page 1 in the side bar, but when I am on Page 1, I see links to all Parent and Child pages (Page A with Page 1 & Page B with Page 2).

    I want to only see links to the pages that belong to the parent of the current page, so that if I am on Page 1, I only see links to Page A and Page 1 (and any other children of Page 1).

    Does that make sense?

    Thanks in advance for any help!

    http://wordpress.org/extend/plugins/advanced-sidebar-menu/

  2. Mat Lipe
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    Is this the result you are getting?

    ON page A
    * Page 1

    ON page 1
    * Page A
    * Page 1
    * Page B
    * Page 2

    The plugin is designed to show the first level of child pages always and any lower levels only if you are on one of these child pages or lower. If Page B is on the Same level as Page A and that level is directly below the Top Level They will both display always.

    I'm not sure how why Page 2 is showing up when You are are on Page 1. If Page A is the parent of Page 1 and Page B is the parent of page 2 but not a child of Page A, Page 2 Should not show up when you are on Page 1.

    If this is happening, please send me a link to the site so I can take a closer look.

    Cheers.

  3. Mat Lipe
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry the above example show have been pre formatted like so

    ON page A
         * Page 1
    
    ON page 1
    * Page A
        * Page 1
    * Page B
        * Page 2
  4. Mat Lipe
    Member
    Plugin Author

    Posted 2 years ago #

    This topic is now resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic