I have code something like this,
$output .= '<div class="feature-course" '.$style.'>';
$output .= '<h3><a href="' . get_permalink(). '">' . get_the_title(). '</a></h3>';
$output .= '<p>' . the_excerpt_max_charlength(70). '</p>';
$output .= '<a class="btn-featue" href="' . get_permalink(). '">' . __('View Course', 'themeum-lms'). ' <i class="fa fa-long-arrow-right"></i></a>';
I need to add image function how I can do that? Can you please suggest me.