Function to call the attachment image from post

Do I understand right that you mean featured thumbnail image for a post and not just any attached image?

See get_the_post_thumbnail() function and your usage will be something like this:

$output .= get_the_post_thumbnail( $authors_post->ID );

Leave a Comment

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