Is there an existing function or call in which you can pass a category id to determine if the category has child posts?
Leave a Reply
You must be logged in to post a comment.
Is there an existing function or call in which you can pass a category id to determine if the category has child posts?
You must be logged in to post a comment.
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.