WordPress.org

Ready to get started?Download WordPress

Forums

Categories not showing on site. (2 posts)

  1. onlinesinglesblog
    Member
    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'); ?>
    Template_Tags/wp_list_cats

Topic Closed

This topic has been closed to new replies.

About this Topic