Passer la navigation

[Résolu] Displaying the count of a custom post type within a specific category

This support ticket is created Il y a 10 months, 1 week. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 3 réponses, a 1 voix.

Dernière mise à jour par onwebdev Il y a 10 months, 1 week.

Assisté par: Minesh.

Auteur
Publications
#2817551

Hello,

I was trying display the count of a specific post type ( example - Hotels) , falling within a specific category ( example = mid-range ). The categories are being used by multiple custom post types.

Will appreciate any help.

Thanks

#2817565

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I would like to know where exactly you want to display the post count belongs to specific category?
- On any archive or page or post?

#2817566

Hello. In the category archive pages .

#2817573

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Can you please tell me the term you mentioned "mid-range" is part of what taxonomy/category?

And you want to display the post count when you are on "mid-range" taxonomy archive page?

#2817682

I created a function, and used a plugin to convert it into shortcode