<p>I assume you got <code>Entry.assetFieldHandle</code> from the docs? That's a way of telling you that you should call the asset field you're looking for by its handle.</p>

<p>You'd have to use the actual asset field handle of the asset field you're addressing, because an entry could have multiple asset fields (so there is NO attribute <code>assetFieldHandle</code> within the <code>entry</code>).</p>

<p>Let's say that your entry has two asset fields: images (multiple images) and logo (1 image).
In this case, this would be the way to display those assets:</p>

<pre><code>{# get multiple assets from field with handle 'images' #}
{% for image in entry.images %}
    {{ image.link }}
{% endfor %}

{# if you know an asset field only contains 1 asset (because its input is limited to 1)
   you can use 'first()' to get it without any for loop #}
{{ entry.logo.first().link }}
</code></pre>

CC BY-SA 3.0
2014-11-26T08:37:51.797Z
Hi, thanks, I should have figured it out.
Csaba Dobo
CC BY-SA 3.0
2014-11-25T21:14:47.950Z
2014-11-25T21:14:47.950Z
Paul
<p>I discovered that I can replace:</p>

<pre><code>{% for asset in entry.assetFieldHandle %}
    {{ asset.url }} -- {{ asset.width }} -- {{ asset.height }}
{% endfor %}
</code></pre>

<p>From <code>assetFieldHandle</code> to the name of the handle ... then it works.
But why not with <code>entry.assetFieldHandle</code>?</p>

<pre><code>{% for asset in entry.image %}
    {{ asset.url }} -- {{ asset.width }} -- {{ asset.height }}
{% endfor %}
</code></pre>

<templating><entry><image>
Image in entry only showing when using entry.image instead of entry.assetFieldHandle
# Image in entry only showing when using entry.image instead of entry.assetFieldHandle

(Asked by: username_0 on 2014-11-25)

I discovered that I can replace:
{% for asset in entry.assetFieldHandle %}
    {{ asset.url }} -- {{ asset.width }} -- {{ asset.height }}
{% endfor %}

From assetFieldHandle to the name of the handle ... then it works.
But why not with entry.assetFieldHandle?
{% for asset in entry.image %}
    {{ asset.url }} -- {{ asset.width }} -- {{ asset.height }}
{% endfor %}

**Tags:** templating, entry, image

---

## 1 answers

### Answer by username_1 on 2014-11-25. Score: 2

I assume you got Entry.assetFieldHandle from the docs? That's a way of telling you that you should call the asset field you're looking for by its handle.
You'd have to use the actual asset field handle of the asset field you're addressing, because an entry could have multiple asset fields (so there is NO attribute assetFieldHandle within the entry).
Let's say that your entry has two asset fields: images (multiple images) and logo (1 image).
In this case, this would be the way to display those assets:
{# get multiple assets from field with handle 'images' #}
{% for image in entry.images %}
    {{ image.link }}
{% endfor %}

{# if you know an asset field only contains 1 asset (because its input is limited to 1)
   you can use 'first()' to get it without any for loop #}
{{ entry.logo.first().link }}

> **Comments:**
> **username_0**: Hi, thanks, I should have figured it out.  

---

