$tag) { $tag_link = get_tag_link($tag->term_id); if ($key === end($keys)) { echo '#'.esc_html($tag->name).''; } else { echo ' #'.esc_html($tag->name).', '; } } ?>
'; the_post_thumbnail( '', array( 'class'=>'img-fluid' ) ); echo ''; $thumbnail_id = get_post_thumbnail_id(); $caption = get_post($thumbnail_id)->post_excerpt; if (!empty($caption)) { echo '' . esc_html($caption) . ''; } } }?>
'
%title ', 'next_text' => ' %title
', 'in_same_term' => true, )); ?> '', )); ?>

ID); $number_of_related_posts = 3; if ($categories) { $cat_ids = array(); foreach ($categories as $category) $cat_ids[] = $category->term_id; $args = array( 'category__in' => $cat_ids, 'post__not_in' => array($post->ID), 'posts_per_page' => $number_of_related_posts, // Number of related posts to display. 'ignore_sticky_posts' => 1 ); $related_posts = new wp_query($args); while ($related_posts->have_posts()) { $related_posts->the_post(); global $post; $url = blogus_get_freatured_image_url($post->ID, 'blogus-featured'); ?>
style="background-image: url('');" >