Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Aboobacker P on "Display sub menu items of a parent menu - wp_nav_menu"

$
0
0

Hi,

I want to display sub menu items of a specific menu item.

I got a solution here: http://www.ordinarycoder.com/wordpress-wp_nav_menu-show-a-submenu-only/. It works charm, but actually I need to add some elements with the generated sub menu items. I am unable to add elements such as div, span etc. to them as they are generated with their own markup.

Please help me to generate them as an array.

-Menu_id_100
--sub menu1
--sub menu2
--sub menu3
-Menu_id_150
--sub menu1
--sub menu2

I want to get all the sub items of Menu_id_150 as an array. (which are sub menu1, sub menu2).


Viewing all articles
Browse latest Browse all 8245

Trending Articles