Title: Conditional Menu Display
Last modified: August 31, 2016

---

# Conditional Menu Display

 *  Resolved [keri23](https://wordpress.org/support/users/keri23/)
 * (@keri23)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/conditional-menu-display/)
 * Hi,
 * I’m trying to do something that I think should be fairly simple with this plugin,
   but I can’t seem to follow the logic to sort it out. My menu looks like this:
 * -Page A
    –subpage 1 –subpage 2 -Page B –subpage 1 –subpage 2 -Page C –subpage
   1 –subpage 2
 * I’m looking for a menu that would display the same on both the Pages and subpages,
   showing only what is in that category. So on both Page A and its subpages the
   menu would be:
    -Page A –subpage 1 –subpage 2
 * On Page B and it’s subpages the menu would be:
    -Page B –subpage 1 –subpage 2
 * etc, etc. So basically for the Pages, I want to show their title and children,
   and on subpages I want to show their Parent and siblings.
 * Does that make sense? Any assistance would be appreciated.
 * [https://wordpress.org/plugins/custom-menu-wizard/](https://wordpress.org/plugins/custom-menu-wizard/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [wizzud](https://wordpress.org/support/users/wizzud/)
 * (@wizzud)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/conditional-menu-display/#post-7051264)
 * So it’s Branch=Current Item, Starting at 1 (root) _(primary & secondary filters
   respectively)_?
 *  Thread Starter [keri23](https://wordpress.org/support/users/keri23/)
 * (@keri23)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/conditional-menu-display/#post-7051382)
 * Using that I got a shortcode output that looks like this:
    [cmwizard menu=329
   branch=current start_at=”-1″ depth=2/]
 * This is giving me the menu I want on the subpages (showing only their siblings
   and parent). But on the main pages, the only thing in the menu is the current
   page. What do I need to add to also display the children menu items (but nothing
   else) on those main pages?
 * Thank you very much for your help.
 *  Plugin Author [wizzud](https://wordpress.org/support/users/wizzud/)
 * (@wizzud)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/conditional-menu-display/#post-7051384)
 * Using my suggestion should have resulted in a shortcode equivalent of
 *     ```
       [cmwizard menu=329 branch=current start_at="1"/]
       ```
   
 * **However**, seeing as you only have 2 levels in your menu, it makes no difference
   because the parent of a root level item is still that root level item. And with
   a setting of depth 2, in a 2-level menu, CMW will show both levels.
 * Using your settings, given that one branch of menu #329 looks like…
    - _Page A_ (at root level, level 1)
 *  - _subpage 1_ (at level 2, immediate child of Page A)
    - _subpage 2_ (at level 2, immediate child of Page A)
 * …then if _Page A_ is current, CMW should show 2 levels of #329, starting with
   _Page A_‘s parent (there isn’t one so it uses _Page A_), ie. _Page A_, _subpage
   1_ & _subpage 2_.
    If _subpage 1_ is current, CMW should show 2 levels of #329,
   starting with _subpage 1_‘s parent (_Page A_), ie. _Page A_, _subpage 1_ & _subpage
   2_. Likewise if _subpage 2_ is current.
 * My understanding of your requirement is that CMW should show _Page A_, _subpage
   1_ & _subpage 2_ – and **only** those items – if any one of those 3 pages is 
   the current page?
    Does the CMW widget Assist produce the output you are after,
   using the settings you have given?
 *  Thread Starter [keri23](https://wordpress.org/support/users/keri23/)
 * (@keri23)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/conditional-menu-display/#post-7051424)
 * Hi,
 * This still gives me the same issue with the menu being correct on the subpages,
   but not being able to display the children on the main pages.
 * I really appreciate all of your help and quick responses.
 * I think I’ll just the regular Custom Menu plugin for this.
 *  Plugin Author [wizzud](https://wordpress.org/support/users/wizzud/)
 * (@wizzud)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/conditional-menu-display/#post-7051426)
 * Do you have a web-accessible site that I can look at?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Conditional Menu Display’ is closed to new replies.

 * ![](https://ps.w.org/custom-menu-wizard/assets/icon-256x256.png?rev=1381901)
 * [Custom Menu Wizard Widget](https://wordpress.org/plugins/custom-menu-wizard/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-menu-wizard/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-menu-wizard/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-menu-wizard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-menu-wizard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-menu-wizard/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [wizzud](https://wordpress.org/support/users/wizzud/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/conditional-menu-display/#post-7051426)
 * Status: resolved