ID, 'businessroy_page_layouts', true ) ); if(!$post_sidebar){ $post_sidebar = esc_attr( get_theme_mod( 'businessroy_blog_template_sidebar','right' ) ); } if ($post_sidebar == 'no') { $colid = 12; } elseif ($post_sidebar == 'left' || $post_sidebar == 'right'){ $colid = 8; } $blog = get_theme_mod('businessroy_blogtemplate_postcat'); $blog_cat_id = explode(',', $blog); $args = array( 'posts_per_page' => 6, 'post_type' => 'post', 'paged' => get_query_var( 'paged' ), 'tax_query' => array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $blog_cat_id ), ), ); get_header(); ?>
'; } /* Start the Loop */ while ( have_posts() ) : the_post(); /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ // Post Display Layout if( !empty( $layout ) && $layout == 'masonry2-rsidebar' ){ get_template_part( 'template-parts/content', 'masonry' ); }else { get_template_part( 'template-parts/content', get_post_format() ); } endwhile; if( !empty( $layout ) && $layout == 'masonry2-rsidebar'){ echo '
'; } the_posts_pagination( array( 'prev_text' => esc_html__( 'Prev', 'business-roy' ), 'next_text' => esc_html__( 'Next', 'business-roy' ), ) ); else : get_template_part( 'template-parts/content', 'none' ); endif; ?>