Saltar navegación

[Resuelto] 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 3 respuestas, tiene 1 mensaje.

Última actualización por onwebdev 10 months, 1 week ago.

Asistido por: Minesh.

Autor
Mensajes
#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
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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