Taxonomy called "Listing Categories"
Taxonomy custom field for Listing Categories called "Listing Category Image"
Custom Post Type called "Listings"
A view for Listings
Within the loop of my view, for each Listing I would like to display the Listing Category Image associated to the Listing Category assigned to the Listing. I have tried several different shortcodes but none seem to be related:
Hello. Thank you for contacting the Toolset support.
For now, you can display term fields on a View listing terms and on a term archive page.
That is why you will have to create a view that should be set to query you taxonomy and within the view's "Loop Editor" section, you can add your desired term field.
And then later on you should add this taxonomy view inside your post view.
Thanks Minesh. I am not sure I understand. Are you saying that I should create a view for "Listing Categories", add the Listing-category-image to that view and then include the view in the custom post type for "Listings"? The documentation link you sent is not super clear. Nevertheless, I tried this but the image displaying is not related to the CPT itself. How do I get the CPT view to display the Listing Category Image of the Listing Category related to the CPT?
Okay I was able to resolve this. Here is what I did:
1. Create a view called "Listing Category Image" based on the Listing Categories.
2. Added Filter "Taxonomy is set by the current post"
3. For this view, I selected "unformatted" from the loop wizard and unselected "Use a Content Template to group the fields in this loop".
4. From there I added the image field to the loop.
5. I then created a view called "Listings"
6. In the Listings view, I added the "Listing Category Image" view to populate the taxonomy image (or any custom taxonomy field).