I am aware that I can use [types termmeta='slug'][/types] on a CPT to insert fields from the taxonomy the CPT is assigned to.
I want to use this sort of thing but adapt it for results in a View loop but using a Content Template. Is this possible?
For example, I want to have this shortcode somewhere in the CT which is then used in a View which displays CPTs. For every result in the View I want to be able to show a certain field from a specific taxonomy which the CPT would be assigned to.
I hope this makes sense. If you need any clarification then please let me know.
So this would be impossible to do if the view I was using was a post types view?
I would like to be able to use it in the follow scenario:
A View showing custom posts, this view shows various different results over various custom post types. For each result, it displays information including which taxonomies the result is assigned to, it also shows a term field from the assigned taxonomy.
"So this would be impossible to do if the view I was using was a post types view?"
Yes if it was a post view it wouldn't be possible since the post view wouldn't be looping through taxonomy data.
Now what you can do is if you have a view listing out post, you can create another view that lists out the taxonomies and nest them.
So instead of 2 taxonomies you will need to have 1 post view and 1 taxonomy view. In the taxonomy view you will add a query filter for "Taxonomy Term " then select "Set by the current post".