Skip Navigation

[Resolved] How to display images added to custom taxonomy using term fields on single post

This support ticket is created 7 years, 3 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 4 replies, has 2 voices.

Last updated by Carious Legion 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#557090

I am trying to display images add to custom taxonomy using term fields on the single post template made with layouts. I made custom taxonomy called TV shows and made term field called tv show image and assign the term Field Group to the cpt.

I expected to see: the images but Instead, I got nothing showing up.

[types termmeta='tv-show-image' alt='%%ALT%%' title='%%TITLE%%' size='large' align='none' resize='proportional'][/types]
#557102

Dear Carious,

The shortcode you mentioned above will be able to work in a taxonomy loops, for example you can try this:
1) Create a view,
You will need to create a view:
a) section "Content Selection", choose "Taxonomy"-> "TV shows"
b) section "Query Filter", add a filter:
Taxonomy is set by the page where this View is inserted
c) section "Loop Output Editor", display the shortcode you mentioned above, and put the view into your content for single post, and test again.

#557925

Thank you it worked!

What's the difference between "Taxonomy is set by the current post" and "Taxonomy is set by the page where this View is inserted"

It's working with both filter.

#557962

If the view is in another post loop, you can use the option:
Taxonomy is set by the current post

In your case, it is a single post page, so it should be "Taxonomy is set by the page where this View is inserted"

#557973

Ok, Thank you for your help!