• Resolved mikehermary

    (@mikehermary)


    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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unknown get_image function error’ is closed to new replies.