php - Show Custom Taxonomy Post Count by the Taxonomy ID -
I'm looking for a way to show the quantity of posts in each custom classification by ID, I want to show in my sidebar navigation The amount of posts that are not the party of any query, so I have every custom customer ID but I'm not sure how to get the calculation posted by them I see that there is a function in WordPress
& lt; php wp_count_terms ($ classification, $ args); ? & Gt; Although my entire custom classification requires post counting to count each post for each of my different categories.
<
& Gt; Guide ',' Post_Status' = & gt; 'Publish', 'Categorization-Name' = & gt; 'Classification Category Category', 'Number Post' => 1]; Echo $ num = count (get_posts ($ args)); ? & Gt;
Comments
Post a Comment