How to display not post categories

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer