Skip to main content

Posts to display content based on tag

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

Please see below for the code needed!

Share this post

Showing 4 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.