• Resolved polyfade

    (@polyfade)


    How do we display an image from ACF’s Options page? (https://www.advancedcustomfields.com/resources/options-page/)

    [field option_field option=true] only works well if the field is text.

    [field image=option_field option=true] based on other examples doesn’t work.

    If I assign the image as an ID, it returns the ID number and ignores all shortcode parameters such as out=url or return=url, or size=thumbnail.

    Just as if I choose array (object), it returns the entire array and ignores any shortcode parameters I specify.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try wrapping the shortcode in an img tag.

    <img class="image" src="[field image_filed_slug option=true]">

    with the return value set as image URL

    Thread Starter polyfade

    (@polyfade)

    Thanks @robey. I don’t recall what I ended up doing, but at least in future I’ll know what to do.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Retrieve Image from ACF Options Page’ is closed to new replies.