Hello, I would like to have blog posts with a specific tag display content different from other blog posts. I've been trying something like:
{% if page_tag.name == 'Film' %}
{% include "this_html" %}
{% endif %}
I've tried this with every variation I can think of and nothing has worked in order to have blog posts tagged with "Film" to display certain content.
Any help would be greatly appreciated!
Alison
Official response from Taylor Pineiro
Please see below for the code needed!
Share this post
Showing 4 reactions
Sign in with
Certified Architect
Certified Expert
{% for tag in page.tags }
{ if tag.name == “featured” }
Featured content here.
{ endif }
{ endfor %}