WordPress.org

Ready to get started?Download WordPress

Forums

Show siblings on children pages (not children) in menu (2 posts)

  1. laraswanson
    Member
    Posted 3 years ago #

    Hello! I've got a page structure like this:

    - Apples
    - Red
    - Green
    - Blue
    - Orange
    - Bananas

    On Apples, I want to show the first-level children as subnav (Red and Green).

    On Red, I want to show its siblings (Green). It should not show its children (Blue and Orange).

    Is there a way to specify this? Essentially, if it is top-level, show children. If it's a child page, show siblings (do not show additional children).

  2. laraswanson
    Member
    Posted 3 years ago #

    Apologies for the list not working correctly. It should look like:

    • Apples
      • Red
        • Blue
        • Orange
      • Green
    • Bananas

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic