wp_get_attachment_image_src always returns full-sized image

I think this code will help you:

$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full', false, '' );
echo '<img src="'.$src[0].'">';

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)