Great plugin that adds some good functionality. What I fail to understand is why the level is a required attribute.
In my case, I have a simple menu:
A
– AA
— AAA
-AA
B
– BB
C
D
– DD
etc
If I want to show the submenu of A, why can’t I just automatically get;
– AA
— AAA
-AA
Right now, I have to set my level, but with the level set, it will ONLY show that level. So I will never get to show AAA in the submenu.
If you can set a parent, why would the level still be required. I think a parent alone should be enough data to display a sub-menu!
]]>Hello,
This is a great idea! However, I am having trouble getting it to work. I can confirm that my menu code works fine without your custom attributes. But, when I add ‘level’ and ‘child_of’ nothing shows up.
One potential issue is that I am not sure of the syntax for the integer option for ‘child_of’ — at first I assumed it was the Post ID of the menu item page… but then realized it needed to be the Menu ID. So I inspected the full menu and found the ID and ended up with this:
wp_nav_menu(
array(
'container' => '',
'theme_location' => 'menu-main',
'level' => 3,
'child_of' => 10455,
)
);
But, that didn’t work, so I tried the menu title:
wp_nav_menu(
array(
'container' => '',
'theme_location' => 'menu-main',
'level' => 3,
'child_of' => 'On Stage',
)
);
But, that didn’t work either. I’ve tried removing ‘level’ and also changing the value of ‘level’ to 1.
What am I missing? Thank you.
]]>I would like to be able to have a submenu show when using the ‘child_of’ parameter. If I have Menu > Submenu > Submenu, I need to be able to show the 3rd level of menu in a drop down. Is that possible?
]]>Hey there.
Great plugin. REally strange that these parameters are not standard. Is there any way to use the post ID rather than the post title in the child_of parameter? My reason being is that as a test, I created a menu from a sub-menu and it worked perfectly. I then changed the title of the parent page that the menu was a sub-menu of and the menu stopped displaying. If it used the post id, that would probably mean that the title changes would still keep the menu working.
Cheers and thanks.
Murray
Hi,
I love this extended menu but I don’t understand exactly where my problem is when running it in the sidebar. Could you check my web site and try to help me out on this?
It’s: https://hifu.pl/ and all menu items are correct except for https://hifu.pl/rak-prostaty/ when it dumps all the menu items.
Thank you in advance,
Marek.