WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Conditional Tags Query... (3 posts)

  1. mitchrenton
    Member
    Posted 5 years ago #

    Hi Guys,

    I have 5 sets of identical navigation for 5 mini sites under one main landing page (hope that makes sense).

    Here is the code I've used http://pastebin.com/m2a2a70b0

    The problem I'm having is that once I am on a sub page, the sub menu's then dissapear. This is because I am naming only the parent pages in the if statment.

    Is there any way I can ammend this code so it displays the correct sub pages regardless of which page I am on? Page or sub-page or sub-sub-page

    I think I need a statement like: If I am on the about page or any child of about page then display these sub-pages.

    I just don't know how to mark that up into a query.

    Sorry if this is confusing, but any help would be greatly appreciated.

    Regards,

    Mitch

  2. esmi
    Forum Moderator
    Posted 5 years ago #

  3. mitchrenton
    Member
    Posted 5 years ago #

    Thanks esmi,

    The update on that worked a treat, the subpage_of function is very helpful.

Topic Closed

This topic has been closed to new replies.

About this Topic