'post',
'post_status' => 'publish',
'posts_per_page' => 6,
'ignore_sticky_posts' => 1,
);
if ( ! empty( $themotion_home_a_post_category ) && $themotion_home_a_post_category != 'all' ) {
$args['category_name'] = $themotion_home_a_post_category;
}
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) : ?>
have_posts() ) : $the_query->the_post();
/*
* Include the Post-Format-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 Format name) and that will be used instead.
*/
get_template_part( 'template-parts/content', 'home-one' );
endwhile;
the_posts_navigation( array(
'prev_text' => sprintf( '← %s', __( 'Older Posts', 'themotion' ) ),
'next_text' => sprintf( '%s →', __( 'Newer Posts', 'themotion' ) ),
)
);
else :
get_template_part( 'template-parts/content', 'none' );
endif;
/* Restore original Post Data */
wp_reset_postdata();
?>