Support » Fixing WordPress » List Pages w/ Descendants of Current Ancestor Only

  • Hi,

    I’m looking to create a menu that lists all Top level pages and the descendants of the current ancestor. All top level pages will have child pages (some grand-child pages). However, I want to only show those child and grand-child pages in the menu for the current ancestor.

    For example:

    • TOP 1 // Not current, don’t show children
    • TOP 2 // Not current, don’t show children
    • TOP 3 // Current, show all descendants
      • Child 1 // Descendants of current ancestor shown
        • Grandchild 1 // Descendants of current ancestor shown
        • Grandchild 2 // Descendants of current ancestor shown
      • Child 2 // Descendants of current ancestor shown
    • TOP4 // Not current, don’t show children
    • TOP5 // Not current, don’t show children
    • TOP6 // Not current, don’t show children

    Anyone know how I can achieve this? I’ve been searching for the forum and can’t seem to find anything that will work.

    Thanks!

    – Matt

  • The topic ‘List Pages w/ Descendants of Current Ancestor Only’ is closed to new replies.