I want to register new wp menu, named hub-menu
register_nav_menus(array( ...
'hub-menu' => 'Hub'));
Structure of that menu is as follows:
**Hub Menu**
Hub 1
|_ Spoke 1
|_ Spoke 2
|_ ...
Hub 2
|_ Spoke 4
|_ Spoke 5
|_ ...
and so on.
Since blog posts will make up that menu.
I want to show Menu items from the group only if the post is inside of the group
Example:
On blog post Spoke 5
, only show menu Hub2
, Spoke 4
, Spoke 5
, …
n
On blog post Hub 2
show menu Hub2
, Spoke 4
, Spoke 5
, …
Also, If menu item has different label than post title (post title is deafult) it should still work,
thanks for any help