(Moderator’s observe: The unique title was “The way to know the variety of customized kind posts having a selected taxonomy”)
I am caught with the operate wp_count_posts()!
I created customized publish sorts referred to as 'paintings' to show artworks in a gallery. I additionally created a customized taxonomy referred to as 'artworkcat' to kind every paintings into a selected class ('webdesign', 'emblem', 'print').
I wish to use the wp_count_posts() to know what number of posts I’ve utilizing the 'paintings' customized publish kind, in a selected class.
If that is not clear, I offer you a sensible instance : I wish to know what number of posts I’ve on this 'paintings' customized publish kind, with the ‘artworkcat’ taxonomy referred to as ‘webdesign’.
Does wp_count_posts() work for this, including some parameters ?
Thanks for the assistance !

