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]
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.
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.
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"
Ok, Thank you for your help!