# Get first image in post as fallback

**URL:** <https://forum.ghost.org/t/get-first-image-in-post-as-fallback/10710>\
**Category:** Themes\
**Created:** [December 9, 2019, 11:18am UTC](https://forum.ghost.org/t/get-first-image-in-post-as-fallback/10710 "2019-12-09T11:18:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Biyan\_Pasau](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/biyan_pasau/32/5396_2.png) [@Biyan\_Pasau](https://forum.ghost.org/u/Biyan_Pasau)\
**Post date:** [December 9, 2019, 11:18am UTC](https://forum.ghost.org/t/get-first-image-in-post-as-fallback/10710/1 "2019-12-09T11:18:33Z")

</div>

Is there a way to get the URL of the first image in post as fallback if no featured image is set? Similar to this function:

`{{img_url feature_image}}`

But to only target the first image:

`{{img_url post_first_image}}`
