• Resolved keri23

    (@keri23)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author wizzud

    (@wizzud)

    So it’s Branch=Current Item, Starting at 1 (root) (primary & secondary filters respectively)?

    Thread Starter keri23

    (@keri23)

    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

    (@wizzud)

    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

    (@keri23)

    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

    (@wizzud)

    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.