Linked Questions
16 questions linked to/from Display a portion/ branch of the menu tree using wp_nav_menu()
0
votes
0
answers
2k
views
wp_nav_menu list children if on parent page but sibling if on sibling page
For example:
About Page (Parent)
History
Mission & Vision
Location
If I'm on the About Page, I need the wp_nav_menu to show the three children pages. But if I'm on the History page, I need it ...
1
vote
2
answers
1k
views
How do you manage large menu hierarchies in WP?
Has anyone worked on sites where the menu hierarchies is fairly large?
Not more than 3 levels deep, but more than 40+ menu items?
If you only list first level items in the top menu without dropdowns ...
0
votes
1
answer
852
views
Include Custom Post Type Archive in wp_list_pages
I am wondering how to include a custom post type archive in wp_list_pages.
If there were a page ID, I could simply attach that page to the list using the 'include' argument. I know that there is a '...
0
votes
1
answer
278
views
Load Pages Menu in single.php
I've searched a lot but didn't find an answer ...
My Wordpress has got 4 main areas, each one also has a news (posts) section and an own submenu. If I load a post (with single.php) is it possible to ...
0
votes
1
answer
3k
views
Show only second level menu items? [duplicate]
Something like this. I would like to get only the second level menu items, not their parent items.
Home
Sub Menu Item 1
Sub Menu Item 2
About
Sub Menu Item 3
Sub Menu Item 4
For example, from ...
3
votes
1
answer
8k
views
Show top-level parent with submenu menu walker
I've used the menu walker below to display dynamic submenus with great effect in the past.
It displays 2nd- or lower-level menu items IF the current page is a parent, sibling, or descendant of the ...
3
votes
1
answer
6k
views
Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)
I would like to create a walker function, or modify somehow current wp_nav_menus so it can produce a custom output.
Let's imagine this structure:
menu item 1
menu item 2
submenu item a
submenu item ...
2
votes
2
answers
3k
views
wp_nav_menu show 1 item only
I was reading Wordpress documentation and also trying to find some clear example of how to do this but I couldn't, sorry if this is posted elsewhere but I did my best trying to find an answer before ...
6
votes
1
answer
2k
views
How to get IDs for objects in menu branch?
Is it possible to print content of all menu items, when displaying menu (or branch of menu as in question about displaying menu branches) ?
Once I click on About Us I wish for new page to display ...
1
vote
1
answer
194
views
Menus like a CMS
Here is an example structure of some content:
Parent A
-- Child A
-- Child B
Parent B
-- Child C
-- Child D
Parent A should link to the content of Child A and Parent B should link to the content of ...
3
votes
1
answer
558
views
Put a wp_nav_menu inside another one
I've got two wp_nav_menu's defined - main and sub. The backend menu editor lets me add pages or categories or custom links to my menu, and I can place them under existing pages/categories/links.
...
4
votes
2
answers
31k
views
How show sub menu only using wp_nav_menu()
I am using this code to show the custom menu subpages if you are on the parent page. But what this code also shows is a parent page on a page that has no sub menu, which I would like hidden. Basically ...
2
votes
1
answer
3k
views
Sub-Pages only of menu items in current branch using a custom menu
Although I did a thorough research I could not find a solution. Only solutions coming close.
My custom menu ("top") shows this structure (you see a part of it):
page 1
subpage 1.1
category A
...
1
vote
3
answers
1k
views
wp_list_pages() but only show children on the branch you are on
Lets say I have this menu:
Top
|___ Sub 1
|___ Sub Sub 1
|___ Sub Sub 2
|___ Sub Sub 3
|___ Sub Sub 4
|___ Sub 2
|...
3
votes
3
answers
18k
views
Show specific menu item from wp_nav_menu based on id
I have a wp_nav_menu "Main Menu" such as the following:
Top Level (#menu-item-1)
Sub Item
Sub Item
Top Level (#menu-item-2)
Sub Item
Top Level (#menu-item-3)
Sub Item A
Sub Item B
Sub Item a.1
...