Glad to help.
So the “ads” are regular WP posts, correct?
Just want to make sure so I can provide accurate information, thank you.
-
This reply was modified 15 hours, 24 minutes ago by
Jeff Starr.
Thanks for the quick reply.
In reality, the ads are managed by the Directorist – Business Directory Plugin. It is possible to manage ads by dividing them into categories.
Among other things, by doing some tests, I saw that your plugin was able to count the total number of ads and other informations.
Exemple: With ths shortcode [sbs_cpts_count] gives these informations
- 3 Template
- 13 Listings
- 0 Ordinamento
- 1 Pagina di MailPoet
- 1 Template
What I would like to do is simply count the number of ads for each category. I hope I was clear…
Ok so if I understand correctly you can display your CPT count like this:
[sbs_cpt_count cpt="template"]Replace “template” with the id/slug of your CPT.
This is documented here with more details, just fyi.
I hope this helps, let me know if I can provide any further information.
