How do I count how many top level categories there are?
I need to calculate some dynamic CSS based on how many top level categories exist. (NOT how many posts are in a category, … Read more
I need to calculate some dynamic CSS based on how many top level categories exist. (NOT how many posts are in a category, … Read more
This question already has answers here: Count(*) vs Count(1) – SQL Server (14 answers) Closed 7 years ago. I often find these three … Read more
I’m looking to echo the number of posts per month since the blog began, and for months where there was no posts echo … Read more
I have been searching high and low for a way to count the amount of results from a get_users query. Most of what … Read more
I can’t find if WordPress stores the number of items in a menu. Basically I need to find out how many items are … Read more
wp_count_terms() counts the number of terms in a taxonomy but not the number of post that have those terms and I’ve found that … Read more
I have an sql select query that has a group by. I want to count all the records after the group by statement. … Read more
How can I select count(*) from two different tables (call them tab1 and tab2) having as result: Count_1 Count_2 123 456 I’ve tried … Read more
I’m trying to get the count of published posts in a custom post type for the current user (to display on a profile … Read more
How can I make the comment count on a post on my index page include comments that have been made on, in my … Read more