Ready to get started?Download WordPress


Categories not showing on site. (2 posts)

  1. onlinesinglesblog
    Posted 8 years ago #

    Can somone tell me why the categories are not showing up on http://onlinesinglesblog.com

  2. Michael Bishop

    Posted 8 years ago #

    I'm guessing that the sidebar template has code to not show categories with no posts.
    The default theme has <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
    So to show categories without posts add &hide_empty=0
    <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0&hide_empty=0'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic