Open ersinco opened 1 year ago
<?php $image = fly_get_attachment_image_src( get_post_thumbnail_id(), 'home_page_square', array( 500, 500 ), true ); echo '<img src="' . $image['src'] . '" width="' . $image['width'] . '" height="' . $image['height'] . '" />'; ?>
We are able to capture the width and height of the images. But we can't pull alt attribute :(
Hook that should work
alt="' . $image['alt'].'"
<?php $image = fly_get_attachment_image_src( get_post_thumbnail_id(), 'home_page_square', array( 500, 500 ), true ); echo '<img src="' . $image['src'] . '" width="' . $image['width'] . '" height="' . $image['height'] . '" />'; ?>
We are able to capture the width and height of the images. But we can't pull alt attribute :(
Hook that should work
alt="' . $image['alt'].'"