Hi, I've created a custom field for a term featured image. In MB Views I wish to hide the img tag if no image is selected/added. Unfortunately the following code doesn't work.
Do you have an idea why this is not working?
<div>
{% if attribute( term, 'featured-image' ) is not empty %}
{% set field = attribute( term, 'featured-image' ) %}
<img src="{{ field.full.url }}" width="{{ field.full.width }}" height="{{ field.full.height }}" />
{% endif %}</div>