'post',
'cat' => $home_posts_cat,
'posts_per_page' => '1',
'post__not_in' => get_option('sticky_posts'),
);
// The Query
$query = new WP_Query( $args );
// The Loop
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
get_template_part( 'template-parts/content', 'homelatest' );
}
} else {
get_template_part( 'template-parts/content', 'none' );
}
// Restore original Post Data
wp_reset_postdata();
?>
'post',
'cat' => $home_posts_cat,
'posts_per_page' => '4',
'post__not_in' => get_option('sticky_posts'),
'offset' => '1'
);
// The Query
$query = new WP_Query( $args );
// The Loop
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
get_template_part( 'template-parts/content', 'home' );
}
} else {
get_template_part( 'template-parts/content', 'none' );
}
// Restore original Post Data
wp_reset_postdata();
?>