Hi,
I have a view to display an image with a header inside a WP post. The header should show up only when an author has uploaded an image to this field. I tried the following but the header keeps getting displayed irrespective of whether an image exists or not.
{% if post.title_pin_id is not empty %}
<h2>Pin this for later</h2>
<img src="{{ post.title_pin_id.full.url }}" width="{{ post.title_pin_id.full.width }}" height="{{ post.title_pin_id.full.height }}" alt="{{ post.title_pin_id.full.alt }}">
{% endif %}
Can someone please help with the correction/s here? TIA
Kind regards