Skip Navigation

[Resolved] Split: Displaying Posts via Post Relation + Taxonomy

This support ticket is created 6 years, 5 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)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1082337

I figured it out. I didn't know I could add a term filter for the parent views term as well as the post relation filter at the same time. This totally works. Thanks a lot for your help. Now I have one final question:

Now that I can display the activities of the travel styles nested inside the travel style on the country, I would now have a country dependent image for each travel style.

Lets take the example form my last post. Thailand as well as Lao both have the travel style "Islands". Islands is a term of the taxonomy. I know I can add image fields to the taxonomy but then I could only set the image once and show the same island image on both countries. I'd like to show a different image for islands when displayed on each country though.

Is there some easy way of doing this or would I need to create yet another post type, create another relationship between country and that new post type, add the travel style taxonomy to the new post type as well and then create a post for each of the travel styles and each country? I guess that will work but it seems very complex and a bit error prone. Maybe you have a better idea?

#1082684

Hello,

For the question:
I'd like to show a different image for islands when displayed on each country though.

I suggest you setup a multiple instance custom image field to post type "Countries", for example "style-images", then you will be able to setup some images for each country, and display them in front-end, see our document:
https://toolset.com/documentation/user-guides/repeating-fields/