How to display a featured image in the list of entries I created a field which uploads an image, and I want it to display it for each of my entries inside my for loop.

What's the code I should use to do it?
{% for element in elements %}
    {% set asset = element.assetFieldHandle.one() %}
    {% if asset is not null %}
        &lt;img src="{{ asset.getUrl()"&gt;
    {% endif %}
{% endfor %}


Take a look at ElementQueries and how to handle errors