Skip Navigation

[Resolved] How to show a CPT that is linked to a certain tag of a custom taxonomy?

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have created a CPT and also custom taxonomy that is used by this CPT and also by standard posts. Now I want to display data from the CPT (and its custom fields) whenever a standard post is show that is tagged by a tag of the custom taxonomy to which belongs a CPT post.

Solution:

It is possible within Toolset Views plugin, for example, you can try these:

https://toolset.com/forums/topic/how-to-show-a-cpt-that-is-linked-to-a-certain-tag-of-a-custom-taxonomy/#post-1366151

Relevant Documentation:

https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

This support ticket is created 5 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
- 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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by martinP-14 5 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1365893

Tell us what you are trying to do?

Hi, I have created a CPT and also custom taxonomy that is used by this CPT and also by standard posts. Now I want to display data from the CPT (and its custom fields) whenever a standard post is show that is tagged by a tag of the custom taxonomy to which belongs a CPT post.

Any idea or example how I can achieve this?

Thanks for your help!

Kind regards, Martin

#1366151

Dear Martin,

It is possible within Toolset Views plugin, you can download it here:
https://toolset.com/account/downloads/

for example, you can try these:
1) Dashboard-> Toolset-> Views, Create a post view:
- Query your CPT posts
- Filter by:
Select posts with taxonomy:
custom taxonomy the same as the page where this View is shown
- In view's loop, display the CPT post information

2) Display above post view's shortcode in the single post content.

More help:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

Value set by the current page where this View is shown:
The View is always inserted somewhere. That page where the View is inserted is responsible for setting the taxonomy term. This is good when you want the same View to return different results, according to the page it’s inserted to.

#1366243

My issue is resolved now. Thank you!