Support

Account

Home Forums General Issues Set image alt text using ACF field Reply To: Set image alt text using ACF field

  • Hi @fivehead

    At a guess, you would need to run a hook on post publish/update.

    The hook could then use the get_field value and update the alt.

    You would need to get the image attachment ID and then you can use:

    $image_alt = get_field('image_alt');
    update_post_meta($attachment_id, '_wp_attachment_image_alt', $image_alt);