• I’ve noticed that if you’re using a custom image field (eg: via ACF) and you use a shortcode in a post you’re unable to output the image from that post if it’s outside of a loop, but it does work if you include a loop that references the current post.

    For example, this does not work:

    [field image=custom_image_field]

    But this does:

    [loop id=this]
    [field image=custom_image_field]
    [/loop]

    Is there any fix for this?

  • The topic ‘Custom image field only works within loop’ is closed to new replies.