[wp-trac] [WordPress Trac] #13997: wp_nav_menu enhancement
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 19 15:07:13 UTC 2010
#13997: wp_nav_menu enhancement
-------------------------+--------------------------------------------------
Reporter: Kaiey | Owner:
Type: enhancement | Status: new
Priority: high | Milestone: 3.0.1
Component: Menus | Version: 3.0
Severity: normal | Keywords: menu, extension, children
-------------------------+--------------------------------------------------
Additional parameters need to be added to wp_nav_menu.
When trying to convert my theme that used wp_list_pages to generate
navigation to wp_nav_menu I noticed I was unable to list the children of
("child_of" parameter) a specific menu item.
This was problematic as my theme displayed the children pages for the
parent of the current page.
wp_nav_menu should be extended to include as mentioned at
http://www.wptavern.com/forum/general-wordpress/1506-any-
news-v3-2.html#post14806
{{{
<?php $args = array(
'depth' => 0,
'show_date' => ,
'show_pages' => 0, // defaults to TRUE, set to FALSE to display a
menu of only cats or links
'show_cats' => 0, // defaults to FALSE, set to TRUE to include
categories
'show_linkcats' => 0, // defaults to FALSE, set to TRUE to include
links (by link category)
'date_format' => get_option('date_format'),
'child_of' => 0,
'child_of_cat' => 0, // categories that are children of specified
Category ID
'child_of_linkcat' => 0, // links that are children of specified
LinkCat ID
'exclude' => ,
'exclude_cat' => , // categories to exclude, if including
categories
'exclude_linkcat' => , // link categories to exclude, if
including links
'include' => ,
'include_cat' => , // categories to include explicitly; used with
show_cats
'include_linkcat' => , // link categories to include explicitly;
used with show_linkcats
'title_li' => __('Pages'),
'echo' => 1,
'authors' => ,
'sort_column' => 'menu_order, post_title',
'link_before' => ,
'link_after' => ,
'exclude_tree' => ,
'exclude_cat_tree' => , // exclude specified category tree; used with
show_cats
'exclude_linkcat_tree' => // exclude specified link category tree;
used with show_linkcats
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13997>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list