Support

Account

Home Forums ACF PRO List all entries from a custom field Reply To: List all entries from a custom field

  • oops, code wrap

    so you can simply do

    echo <img src='".$imgElement."' class='img-responsive'>";

    instead of wp_get_attachment_image_src or wp_get_attachment_image

    you dont need to get the attachment via the function call.

    check what your acf image field is set to in the group as a return value, there are options like ‘object’, ‘id’ etc, what do you have it set to. I believe you have it set to url.

    If you set it to id, i believe the previous code will work.