Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

wp_nav_menu "child of" property WordPress

  • REFUNDED

I need a way to get the subpages for a specific item from the new Wordpress 3 Menu functionality. E.g.

wp_nav_menu(array(
'menu' => 'Navigation',
'child_of' => '5',
'container' => false,
'container_class' => false
));


or

wp_nav_menu(array(
'menu' => 'Navigation',
'child_of' => 'News',
'container' => false,
'container_class' => false
));


and this will return a list with only the items specified for that parent. Something like:
wp_list_pages('title_li=&child_of=5);

but instead of getting all child pages from the page structure, it returns all the child pages from the new Appearance->Menu for the menu labeled "Navigation".

I've tried to build a custom walker, but as I have very limited experience with this walkers, i'm not able to do so in the timeframe I have.

Answers (1)

2011-02-25

Denzel Chia answers:

Sorry,

Accidentally posted. I have got no solution for this.

Thanks.