have_posts() ) :
if ( is_home() && !is_front_page() ) :
?>
have_posts() ) :
$query->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.
*/
get_template_part( 'template-parts/content', get_post_type() );
endwhile;
elseif ( !is_sticky() && ! $query->have_posts() ):
get_template_part( 'template-parts/content', 'none' );
endif;
?>
$query->max_num_pages,
'next_text' => ''.esc_html__( 'Next', 'bosa' ) .'' . esc_html__( 'Next page', 'bosa' ) . '',
'prev_text' => ''.esc_html__( 'Prev', 'bosa' ) .'' . esc_html__( 'Previous page', 'bosa' ) . '',
'before_page_number' => '',
));
endif;
wp_reset_postdata();
?>
'post',
'post_status' => 'publish',
'cat' => $latest_posts_category,
'paged' => get_query_var( 'paged', 1 ),
'posts_per_page' => $archive_post_per_page,
)));
$posts_array = $query->get_posts();
$show_latest_posts = count( $posts_array ) > 0;
if( !get_theme_mod( 'disable_latest_posts_section', false ) && $show_latest_posts ){
$latest_title_desc_align = get_theme_mod( 'latest_posts_section_title_desc_alignment', 'left' );
if ( $latest_title_desc_align == 'left' ){
$latest_title_desc_align = 'text-left';
}else if ( $latest_title_desc_align == 'center' ){
$latest_title_desc_align = 'text-center';
}else{
$latest_title_desc_align = 'text-right';
} ?>