<p>You should give a try:</p>

<pre><code>{{ craft.assets.filename('refresh1.png').one().imageCaption }}
</code></pre>

<p>Where <code>imageCaption</code> is the <code>handle</code> of your <code>Image Caption</code> field (<code>imageCaption</code> is an example, you should check this value).</p>

<p>More informations about how to fetch assets: <a href="https://docs.craftcms.com/v3/dev/element-queries/asset-queries.html" rel="nofollow noreferrer">https://docs.craftcms.com/v3/dev/element-queries/asset-queries.html</a></p>

CC BY-SA 4.0
2019-11-28T11:03:13.320Z
2019-11-28T11:03:13.320Z
Romain P.
<p>When you double-click an asset you can set the Image Caption:</p>

<p><img src="https://p-ZmF7dQ.b0.n0.cdn.getcloudapp.com/items/p9u5RblR/Image+2019-11-27+at+6.18.19+PM.png?v=860e6b28707aa9470a23322c2893d215" alt=""></p>

<p>How do you structure the query to output this Image Caption "field?"</p>

<assets><image>
How do you output the Image Caption on an asset?
# How do you output the Image Caption on an asset?

(Asked by: username_0 on 2019-11-27)

When you double-click an asset you can set the Image Caption:

![](https://p-ZmF7dQ.b0.n0.cdn.getcloudapp.com/items/p9u5RblR/Image+2019-11-27+at+6.18.19+PM.png?v=860e6b28707aa9470a23322c2893d215)

How do you structure the query to output this Image Caption "field?"

**Tags:** assets, image


---

## 1 answers

### Answer by username_1 on 2019-11-28. Score: 3 | Accepted answer

You should give a try:
{{ craft.assets.filename('refresh1.png').one().imageCaption }}

Where imageCaption is the handle of your Image Caption field (imageCaption is an example, you should check this value).
More informations about how to fetch assets: https://docs.craftcms.com/v3/dev/element-queries/asset-queries.html


---

