Can anyone tell me how to check whether a category has posts? I'm making a custom category view and would only like to display a link on the categories that have posts in them. Thanks!
Can anyone tell me how to check whether a category has posts? I'm making a custom category view and would only like to display a link on the categories that have posts in them. Thanks!
one posibility:
get_category($cat_id)->count
Thanks, that solved it.
You must log in to post.