Forums

how to show post counts only for category children (3 posts)

  1. manojit
    Member
    Posted 3 years ago #

    Hello,

    Is there a simple way to hide post count for a parent category, but show for its children? Using the standard "wp_list_categories('show_count=1&title_li=')" shows post counts for both.

    Thanks.

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    You'd probably have to construct your own list of categories using get_categories with the apporpriate login to not display count for 'parent' categories.

  3. manojit
    Member
    Posted 2 years ago #

    Thanks. I will try what you suggested and see how far I can go.

Topic Closed

This topic has been closed to new replies.

About this Topic