Changed wordpress theme and need to display subcats in new theme

Discussion in 'WordPress' started by pipes, Mar 18, 2009.

  1. #1
    Hi guys, i just changed a wordpress theme on a blog where i have 11 top categories with one of them having subcats.

    On my old theme i had the following which displayed the subcats:

    <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=1'); ?>

    In my new theme i have the following which isn't currently displaying the subcats, only the top cats and i wonder if anyone may be kind enough to advise me on what to edit/add to the code below in order to display the subcats please?

    <?php wp_list_categories('depth=1&title_li=<b>Categories</b>'); ?>
     
    pipes, Mar 18, 2009 IP
  2. vrktech

    vrktech Well-Known Member

    Messages:
    449
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    vrktech, Mar 18, 2009 IP
    pipes likes this.
  3. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #3
    pipes, Mar 19, 2009 IP