Title: Unknown get_image function error
Last modified: December 10, 2020

---

# Unknown get_image function error

 *  Resolved [mikehermary](https://wordpress.org/support/users/mikehermary/)
 * (@mikehermary)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/unknown-get_image-function-error/)
 * Hello,
 * I am experiencing the following error when trying to display an image gallery
   Advanced Custom Field’s field on my client’s website.
 * `Fatal error: Uncaught Exception: Unknown "get_image" function.`
 * The code that I am using to display the gallery of images is being used in a 
   category Twig file using the following code. Not all story posts have galleries,
   but the if statement should be handling this I assume.
 * I copied the gallery output code directly from the Timber documentation site.
 * Timber is up to date using 1.18.2.
 *     ```
       {% if story.meta( 'photo_gallery' ) %}
         {% for image in story.meta( 'photo_gallery' ) %}
          <img src="{{ get_image(image) }}" />
         {% endfor %}
       {% endif %}
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [gchtr](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/unknown-get_image-function-error/#post-13775153)
 * Already answered in [https://stackoverflow.com/a/65247276/1059980](https://stackoverflow.com/a/65247276/1059980).
   I hope that helps.
 * That’s actually some kind of weird documentation bug that we’ll have to fix.
 *  Thread Starter [mikehermary](https://wordpress.org/support/users/mikehermary/)
 * (@mikehermary)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/unknown-get_image-function-error/#post-13777955)
 * Hello,
 * Thanks for the reply and the link.
 * Cheers,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Unknown get_image function error’ is closed to new replies.

 * ![](https://ps.w.org/timber-library/assets/icon-256x256.png?rev=1482054)
 * [Timber](https://wordpress.org/plugins/timber-library/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/timber-library/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/timber-library/)
 * [Active Topics](https://wordpress.org/support/plugin/timber-library/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/timber-library/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/timber-library/reviews/)

## Tags

 * [advancedcustomfields](https://wordpress.org/support/topic-tag/advancedcustomfields/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [images](https://wordpress.org/support/topic-tag/images/)

 * 2 replies
 * 2 participants
 * Last reply from: [mikehermary](https://wordpress.org/support/users/mikehermary/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/unknown-get_image-function-error/#post-13777955)
 * Status: resolved