WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to show post count next to category (4 posts)

  1. Matt
    Member
    Posted 5 years ago #

    wp_list_categories('optioncount=1') is not working.

  2. buddha trance
    Member
    Posted 5 years ago #

    The codex reference on http://codex.wordpress.org/Template_Tags/wp_list_categories mentions show_count.

    Try this
    <?php wp_list_categories('show_count=1'); ?>

  3. Matt
    Member
    Posted 5 years ago #

    Thanks, that's it.

    optioncount=1 must be deprecated in 2.5+. I copied it from my 2.3.x WP install.

  4. acehawke
    Member
    Posted 5 years ago #

    where about you put it /

Topic Closed

This topic has been closed to new replies.

About this Topic