metabox(); while (have_posts()) { the_post(); $post_id = get_the_ID(); $enable_recommended = get_theme_mod('wpw_blog_enable_recommended', true); $sidebar_position = get_theme_mod('wpw_blog_sidebar_pos', 'left'); $enable_post_meta = get_theme_mod('wpw_blog_enable_post_meta', true); $enable_comments = get_theme_mod('wpw_blog_enable_comments', true); $enable_post_categories = get_theme_mod('wpw_blog_enable_post_categories', true); $content_class = ($sidebar_position == 'none') ? 'col-md-12' : 'col-md-8'; ?>

formatter()->parse_mod('wpw_page-title_element'); $thumbnail = get_the_post_thumbnail($post_id, false, [ 'class' => 'full-width-image margin-bottom', ]); $comment_count = get_comment_count($post_id)['approved']; $comment_count = Wpw::inst()->helpers()->format_number($comment_count); $categories = []; foreach (get_the_category() as $category) { $categories[] = '' . esc_html($category->name) . ''; } $categories = implode(', ', $categories); if (!empty($thumbnail)) { ?>
get($post_id, 'lumeric_post_format'); if (!empty($post_type)) { Wpw::inst()->helpers()->get_post_preview($post_type); } ?>