Skip Navigation

[Résolu] display category ID instead of category name

This support ticket is created Il y a 6 années. 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

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

Dernière mise à jour par alexanderL-2 Il y a 6 années.

Assisté par: Waqar.

Auteur
Publications
#1146449

Hi,
I am trying to display the category ID of the current post. I have created a content template and used the shortcode
[wpv-post-taxonomy type="category" format="slug"]
This shortcode displays the category name but I need the ID.

How can i get the ID of the current post related category?

Thanks,
Alex