How to set alt images on wordpress?

Hello!
Upload the picture via bilder:
<?php if ( !empty( $atts['product_img'] ) ) { ?>

 <img src="<?fw_resize php echo( $atts['product_img']['url'], 360, 270, true ); ?>">

<?php } ?>

Alt media image prescribed:
5a321bf0e628e361195575.png
In the inspector alt is not displayed:
5a321c89cf246830884639.png

Tell me, please, how to get alt? Or he will be taken into account?
June 10th 19 at 15:20
1 answer
June 10th 19 at 15:22
<img src="<?fw_resize php echo( $atts['product_img']['url'], 360, 270, true ); ?>" < code>
br><br> and in this code, then alt you not withdrawn)<br><br> Let's see an example:<br> <a href="https://wordpress.stackexchange.com/questions/193196/how-to-get-image-title-alt-attribute" rel="nofollow">https://wordpress.stackexchange.com/questions/1931...</a><br><br><pre><code>$image_alt = get_post_meta( $image->id, '_wp_attachment_image_alt', true);</code></pre>

Find more questions by tags Search engine optimizationWordPress