Linked Questions

0
votes
1answer
526 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 ...
9
votes
2answers
10k views

Generate a Menu that Displays Child Pages using wp_list_pages() with the New Menu Functionality in WordPress 3.0?

Previously, I was able to selectively load child pages for a currently-selected parent page using logic such as: if( $post->post_parent ) { $children = ...
3
votes
3answers
10k 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 ...
2
votes
1answer
5k 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 ...
5
votes
1answer
1k 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 ...
2
votes
1answer
1k 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
1answer
2k 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 ...
2
votes
1answer
2k 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 ...
2
votes
2answers
352 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 ...
1
vote
2answers
485 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 ...
1
vote
1answer
151 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 ...
2
votes
1answer
111 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. ...
0
votes
1answer
125 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
0answers
104 views

Wordpress menu walker - get the parent item

I want to implement a menu walker system where only those submenu items get listed which have a specific parent. So let's say I have two level one menu items, A and B. On a page I want to get listed ...

15 30 50 per page