';
while ($the_query->have_posts()) {
$the_query->the_post();
$output .= '
';
$output .= '
- '
. get_the_title()
. '
' . strip_tags(mb_substr(get_the_content(), 0, (int) $atts['preview_text_chars']))
. '...
» Read more
';
$output .= '
';
if ($atts['show_featured_image']) {
if (has_post_thumbnail(get_the_ID())) {
$image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'single-post-thumbnail');
$output .= '

';
}
}
$output .= '
';
$output .= '