Skip Navigation

[Resolved] Only showing custom taxonomies that apply to a particular custom post type

This support ticket is created 2 years, 2 months ago. 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 -

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

This topic contains 4 replies, has 2 voices.

Last updated by andrewH-12 2 years, 2 months ago.

Assisted by: Minesh.

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

hidden link

#2467475

Minesh
Supporter

Languages: English (English )

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

Languages: English (English )

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