• I’m a brand new WordPress user and have a little problem. My category list isn’t showing subcategories. The display is caused by this line in index.php
    <?php wp_list_cats(‘optioncount=1’); ?>
    They didn’t display before I added optioncount either.
    Site is My Culinary Journey

Viewing 6 replies - 1 through 6 (of 6 total)
  • That’s probably because there’s no posts in the parent category. Set the showempty setting to 1, and they should start showing.
    Tg

    51 seconds TG ….. impressive 🙂

    And you were another whole 4 minutes after that…. you’re slipping.
    Tg

    Thread Starter mycroft007

    (@mycroft007)

    There are no posts in the parent category, though the parent is showing.
    I changed the line to:
    <?php wp_list_cats(‘showempty=1&optioncount=1’); ?>
    But still no subcategories.
    I waited a whole day to check back. This time I’ll be back in a minute. :>

    That’ll teach the both of us. 1) Me for not checking my info before posting, and 2) you for not checking up on it.
    In the wiki the setting is hide_empty which is set to 1 as default, set it to 0.
    THAT will (should) do it.
    Tg

    Thread Starter mycroft007

    (@mycroft007)

    That did it. Of course I had to do it twice because it need to be set to 0 and not 1. Thanks for the help TG.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Subcategories not showing’ is closed to new replies.