Support

Account

Home Forums Backend Issues (wp-admin) ACF Image Field Not Being Pulled into Post

Solved

ACF Image Field Not Being Pulled into Post

    • vitamin

    • December 16, 2018 at 5:57 am

    Hi,

    I have a site that dynamically pulls in content via ACF fields.

    However, one of the fields (an image field) fails to pull in the image located in the ACF field.

    The image is being pulled in by shortcode: <img src="[acf field='before_photo']" />

    Thanks for any ideas.

    Here is a screencast what whatโ€™s happening: https://www.useloom.com/share/6a8a88b1f4034170a1960487032353e8

  • Thanks for the screencast of the issue – very helpful!

    I noticed in the ACF field settings for the before_photo field, you have the return value set to Image Array. With this setting, more than 1 value is returned meaning WordPress doesn’t know which value to place in the src.

    You can change the return type to Image URL and this should give the expected result.

    • vitamin

    • December 18, 2018 at 10:46 am

    Thanks IAmAdamTaylor ! That solved the issue. ๐Ÿ™‚

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.