WordPress.org

Ready to get started?Download WordPress

Forums

Menu in page / post (2 posts)

  1. salmoliv
    Member
    Posted 2 years ago #

    Hello,

    I have WordPress installed and I have a menu like that:

    =Page1
    ==Post11
    ==Post12
    =Page2
    ==Post21
    ===Post211
    ===Post212
    ==Post22
    =Page3
    ==Page4
    ===Post41

    I would like, if I'm in the Page1, display the menu, but only showing
    =Post11
    =Post12

    And if I'm in Post21, display
    =Post211
    =Post212

    Is there a way to tweak wp_nav_menu(); in order to achieve that?

    Or something else I could use?

    Thanks a lot.

  2. salmoliv
    Member
    Posted 2 years ago #

    I meant Category and not Post ...

    Page1
    -Category1
    -Category2
    Page2

    If I'm at the home level, I want the full menu to be displayed.
    If I'm on my Page1, I want to display in my page a menu with only
    Category1
    Category2

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic