WordPress.org

Forums

Category Post Totals (3 posts)

  1. 1danielj
    Member
    Posted 10 years ago #

    Hi - I am looking for a simple plugin or code that will display the total number of post in each of my listed categories. How can this be done? Thanks in advance.

  2. jwurster
    Member
    Posted 10 years ago #

    There are a bunch of arguments that can be passed to the function that displays the category information. I use:

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

    to display sub-categories and counts, sorted by name.

  3. 1danielj
    Member
    Posted 10 years ago #

    Yes, that did it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.