Support » Plugins and Hacks » count articles in categories

  • Resolved x_maras

    (@x_maras)


    I’ve seen in a lot of blogs next to the category name, a number which means the amount of the articles in this category.

    Is there a function that returns this? If there is not, can you please
    tell me where I have to look in the database in order to make one?

    Thanks,
    Dinos

Viewing 2 replies - 1 through 2 (of 2 total)
  • category-template.php

    -> get_the_category( $id = false )
    -> and some other, also posible to parse wp_cache_object

    functions that do things you describe below
    -> wp_list_categories

    Thanks,

    I found it in the wp_list_categories as you said.
    Just added the parameter show_count=1.

    Thanks again, for the help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘count articles in categories’ is closed to new replies.