WordPress.org

Ready to get started?Download WordPress

Forums

Listing Child-pages on sibling pages (1 post)

  1. divrom
    Member
    Posted 7 years ago #

    I've searched the forums and not managed to find an exact solution to this, so maybe someone out there can help?

    What I want is to use the child-parent option to divide up my site into sections, similar to something like the book device in Drupal. I then need to only display the "sibling" pages in the sidebar.

    For example, if I had:

    Food
    -- Meat
    -- Fruit
    -- Dairy
    Drink
    -- Water
    -- Coffee

    I would want the sidebar to list only "Food" and "Drink" if I'm on the home page. However, if I'm on "Food", or any of its children, then I'd want to list all of the children in the sidebar.

    Is that possible?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.