Passer la navigation

[Résolu] Only showing custom taxonomies that apply to a particular custom post type

This support ticket is created Il y a 3 years, 8 months. 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 4 réponses, a 2 voix.

Dernière mise à jour par andrewH-12 Il y a 3 years, 8 months.

Assisté par: Minesh.

Auteur
Publications
#2467177

Is it possible to use the taxonomy list widget in order to only show taxonomies that apply to that custom post type rather than displaying all the taxonomies? Or maybe another widget could achieve this?

lien caché

#2467475

Minesh
Supporter

Les langues: Anglais (English )

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

Hello. Thank you for contacting the Toolset support.

As I understand, you have lets say taxonomy "Book Types" and you have terms assigned to this taxonomy:
- term a
- term b
- term c

The above taxonomy is assigned to post type Books. Then, you have one post added to Book post type namely "Magic Book" where you assigned two terms "term a" and "term b"

Now, what you want is, when you display single post of post type Book, in this case "Magic Book" you want to display the terms attached to post "Magic Book" i.e. term a and term b. Is that correct or you should correct me.

#2467509

Yes that's exactly right.

#2467577

Minesh
Supporter

Les langues: Anglais (English )

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

Basically, you can use the shortcode:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-taxonomy

For example:

Filed under [wpv-post-taxonomy type="taxonomy-slug" separator=", " format="link" show="name" order="asc"]

Where:
- replace "taxonomy-slug" with your original taxonomy slug.

Does that help? or you want some other solution.

#2467597

That's the one! Thanks Minesh.