Show the feature_image for the primary_tag

On my homepage, I would like to show the feature image of my primary tag. The website is a monthly magazine so I want to tag each article with the name of current issue, ie: february 2019 would be the primary tag and current would be a secondary tag. So on my homepage, I want to find the feature_image of the primary_tag of any post in the issue.

{{#get "posts" include="tags,authors" limit="1" filter="tag:current"}}
{{#foreach posts}}
{{ primary_tag.feature_image }}
{{/foreach}}
{{/get}}

In this code, I can pull primary_tag.slug, but I cannot get primary_tag.feature_image

Is there an easier way to do this?

1 Like

I am sorry for this post. My code works just fine. My tag didn’t have an image. Feel free to delete this.