Title: Show submenu on posts
Last modified: August 30, 2016

---

# Show submenu on posts

 *  Resolved [l r](https://wordpress.org/support/users/lainyrache/)
 * (@lainyrache)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/show-submenu-on-posts/)
 * Hi
    I am using this plugin to show a menu which contains both pages and a posts
   category. When I click on the category link in the submenu and then click on 
   a post to read in full, my submenu disappears. Am I doing something wrong? The
   alternative code at the bottom of the widget is: `[cmwizard menu=21 branch=current
   start_at="1" exclude_level="1" title_from="branch-root" title_linked=1/]`
 * Thanks for any help!
 * [https://wordpress.org/plugins/custom-menu-wizard/](https://wordpress.org/plugins/custom-menu-wizard/)

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

 *  Plugin Author [wizzud](https://wordpress.org/support/users/wizzud/)
 * (@wizzud)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/show-submenu-on-posts/#post-6345117)
 * Under the **Fallbacks** section, try setting…
 * “_If no Current Item can be found_” (checkbox)
 * This gets applied right at the start of processing, when determining which of
   the menu items (if any) should be regarded as the unique “Current Item” by this
   widget. Under certain conditions, WordPress will mark an item as being the parent
   of a current item … but there won’t actually be a current item marked! This occurs,
   for example, when displaying a full post for which there is no specific related
   menu item, yet there is a menu item for a Category that the displayed post belongs
   to : WordPress will then mark the related Category as being the parent of the
   current item (the post) even though it can’t mark the post as being the current
   item (because there’s no specific item for it within the menu).
 * Enabling this fallback will make the widget look for these situations – only 
   as a last resort! – and set (one of) the found “parent” item(s) as the Current
   Item.
 *  Thread Starter [l r](https://wordpress.org/support/users/lainyrache/)
 * (@lainyrache)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/show-submenu-on-posts/#post-6345210)
 * Thank you Wizzud!
    That works!
 * My only slight issue is that if the post is in more than one category, the menu
   can switch to another sub-menu that has the other category in it – I presume 
   that’s unavoidable?
 *  Plugin Author [wizzud](https://wordpress.org/support/users/wizzud/)
 * (@wizzud)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/show-submenu-on-posts/#post-6345271)
 * Sorry, but currently, Yes, it’s unavoidable.
 * CMW can only cope with one “current item”. At present, it will use the first 
   qualifying item it finds within the menu (it’s actually a bit more complex than
   that, but essentially it works on a first-found basis). This means that when 
   the menu has category-type items – such as yours – it is quite possible for more
   than one menu item to marked (by WordPress) as being a possible parent candidate
   for a particular post. This is perfectly correct : the post _does belong_ to 
   each of those categories.
 * For example, given…
 *     ```
       Menu Item A (lists category A items)
       Menu Item B (lists category B items)
       Menu Item C (lists category C items)
       ```
   
 * …if Post X belongs to categories A, B _and_ C, WordPress will mark all 3 menu
   items as a possible parent, and CMW will use Menu Item A as the “current item”(
   in the absence of a better-qualified candidate).
    In this particular example,
   it wouldn’t even help if CMW were switched to work on a last-found basis instead…
   it would simply settle on Menu Item C, which still isn’t the one you’d actually
   want.

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

The topic ‘Show submenu on posts’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [wizzud](https://wordpress.org/support/users/wizzud/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/show-submenu-on-posts/#post-6345271)
 * Status: resolved