Jump to content


Photo
- - - - -

Sub categories horizontal menu


This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1 claudiomaria

claudiomaria

    Newbie

  • Members
  • 8 posts

Posted 06 November 2010 - 02:10 AM

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!

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts

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 claudiomaria

claudiomaria

    Newbie

  • Members
  • 8 posts

Posted 06 November 2010 - 10:45 AM

Yes, we would like to have the very same functions of the child-pages submenu.

#4 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

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 claudiomaria

claudiomaria

    Newbie

  • Members
  • 8 posts

Posted 08 November 2010 - 09:45 PM

Thanks!

#6 heroescourse

heroescourse

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts

Posted 24 November 2010 - 12:31 AM

Any updates on this one? Thanks!

#7 systime

systime

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 31 January 2011 - 01:39 PM

I am having the same problem? Do you have a solution?

#8 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

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;} ?>
`