You need to add get_post_thumbnail_id
and pass $post->ID
in wp_get_attachment_image_src
for e.g.
$image_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
to get image url : $image_attributes[0]
You need to add get_post_thumbnail_id
and pass $post->ID
in wp_get_attachment_image_src
for e.g.
$image_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
to get image url : $image_attributes[0]