tag, with necessary attributes. include( locate_template( 'templates/layout-wrapper-begin.php', false, false ) ); if ( isset( $blogcentral_header ) ) { echo $blogcentral_header; } if ( ! empty( $blogcentral_query ) ) { if ( $blogcentral_query->have_posts() ) { // The loop while ( $blogcentral_query->have_posts() ) : // Reset variables $blogcentral_img_wrap_class = ''; $blogcentral_media_wrap_style = "style='"; $blogcentral_meta_wrap_class = ''; $blogcentral_meta_wrap_style = "style='"; $blogcentral_extra_li_class = ''; $extra_li_attrs = ''; $blogcentral_media = ''; $blogcentral_post_opts = ''; $blogcentral_query->the_post(); $post_id = $blogcentral_query->post->ID; // Get postmeta possibly set if the BlogCentral theme is included, if not then no harm. $blogcentral_post_meta = get_post_meta( $post_id, 'blogcentral_options', true ); $blogcentral_post_opts = array_merge( $blogcentral_layout_opts, (array)$blogcentral_post_meta ); // Html fragments for classes and styles to be added to each post item $blogcentral_post_opts = blogcentral_construct_inner_classes_styles( $blogcentral_post_opts ); $format = ''; if ( $format = get_post_format() ) { $format = '-' . $format; } // Get the default featured image if has one. $blogcentral_thumb = ''; if ( has_post_thumbnail() ) { $blogcentral_thumb = get_the_post_thumbnail( $post_id, 'full' ); } include( locate_template( 'content' . $format . '.php', false, false ) ); endwhile; // Restore original Post Data wp_reset_postdata(); } } // Matching ending tags for the