Hello, we would like to have our subcategories displayed - exactly as it happens with child-page - in an horizontal sub-menu row. Is it possible? Thanks!
Sub categories horizontal menu
Started by
claudiomaria
, Nov 06 2010 02:10 AM
7 replies to this topic
#1
Posted 06 November 2010 - 02:10 AM
#2
Posted 06 November 2010 - 03:11 AM
Hello,
Would you like this sub-menu row to appear directly below the primary navigation bar on all pages?
#3
Posted 06 November 2010 - 10:45 AM
Yes, we would like to have the very same functions of the child-pages submenu.
#4
Posted 08 November 2010 - 07:41 PM
Hey Claudio,
This is a great point, we'll look into making the subnav work with sub-cats
#5
Posted 08 November 2010 - 09:45 PM
Thanks!
#6
Posted 24 November 2010 - 12:31 AM
Any updates on this one?
Thanks!
#7
Posted 31 January 2011 - 01:39 PM
I am having the same problem? Do you have a solution?
#8
Posted 31 January 2011 - 05:44 PM
I tried to basically replace the current subnav function listed below so that each occurence of wp_list_pages is now wp_list_categories and it seems to work:
`
-
ancestors)>=2){
$reverse_ancestors = array_reverse($post->ancestors);
$children = wp_list_categories("title_li=&depth=1&child_of=".$reverse_ancestors[0]."&echo=0&sort_column=menu_order");
}elseif($post->post_parent){ $children = wp_list_pages("title_li=&depth=1&child_of=".$post->post_parent."&echo=0&sort_column=menu_order");
}else{ $children = wp_list_categories("title_li=&depth=1&child_of=".$post->ID."&echo=0&sort_column=menu_order");}
if ($children) { echo $children;}
?>










