Display all sub categories in category menu

Home Forums Using Thematic Child Themes Free and Premium Child Themes Display all sub categories in category menu

This topic is: resolved

This topic contains 1 reply, has 1 voice, and was last updated by  darrendmiller 3 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #3836


    I have modified the Gallery child theme to use a category menu with the following code:

    function childtheme_menus() { ?>
     <div id="page-menu" class="menu">
     <ul id="page-nav" class="sf-menu">
     &lt;li&gt;&lt;a href=&quot;<a href="http://www.twitter.com/darrendmiller&#038;quot" rel="nofollow">http://www.twitter.com/darrendmiller&#038;quot</a>; target=&quot;_blank&quot;&gt;Twitter&lt;/a&gt;&lt;/li&gt;
     &lt;li class=&quot;rss&quot;&gt;&lt;a href=&quot;&lt;?php bloginfo(&#8216;rss2_url&#8217;); ?&gt;&quot;&gt;RSS Feed&lt;/a&gt;&lt;/li&gt;
     &lt;?php wp_list_pages(&#8216;title_li=&#8217;); ?&gt;
     &lt;div id=&quot;category-menu&quot; class=&quot;menu&quot;&gt;
     &lt;ul id=&quot;category-nav&quot; class=&quot;sf-menu&quot;&gt;
     &lt;li class=&quot;home&quot;&gt;&lt;a href=&quot;&lt;? bloginfo(&#8216;url&#8217;); ?&gt;&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
     &lt;?php wp_list_categories(&#8216;title_li=&amp;number=7&amp;orderby=ID&#8217;); ?&gt;
     &lt;li class=&quot;blog-description&quot;&gt;&lt;span&gt;&lt;?php bloginfo(&#8216;description&#8217;); ?&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;?php }

    However, one of these categories has around 5 sub-categories, and only one of those sub-categories appears in the menu. How can I edit this code to show all of them?



    Nevermind, didn’t notice that “number=7” before!

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Display all sub categories in category menu’ is closed to new replies.