Support

Account

Home Forums General Issues Getting the alt text instead of the image title Reply To: Getting the alt text instead of the image title

  • Problem solved.. 🙂

    The variable $image_one doesn’t return the image ID anymore it should be get_field( ‘field_name’ ).

    Like this:

    
    $slide_one = '<li><img src="'. $image_one[0] .'" alt="'. get_post_meta( get_field('slide_image_one') ,'_wp_attachment_image_alt', true ) .'" /></li>';