Skip Navigation

[Resolved] Displaying the count of a custom post type within a specific category

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by onwebdev 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#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

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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