Is there an existing function or call in which you can pass a category id to determine if the category has child posts?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
The get_term() function accepts a term id and a taxonomy slug. It returns an object that contains a "count" for that term.
I'm not aware of any utility function that just counts posts in a particular category. |
|||||||
|