Support

Account

Home Forums ACF PRO Image Field Shortcode As Data-Image-Src Reply To: Image Field Shortcode As Data-Image-Src

  • If this is in a template file then you need to use get_field() and not a shortcode. ACF shortcodes only work on simple text fields.

    Unless I’m missing something. Is there some reason that you need to use a shortcode? Is this code not in a template?