Get ONLY the number of results in a query

I just want to show the total number of custom posts matching some conditions (arguments).

Do I have to make the entire query (get_posts, query_posts…) and get found_posts from it or is there a more efficient way to query the totals?

Read more here:: Get ONLY the number of results in a query

Leave a Reply

Your email address will not be published. Required fields are marked *