'post',
'post_status' => 'publish',
'posts_per_page' => 3,
'ignore_sticky_posts' => 1,
);
if ( ! empty( $themotion_cat ) ) {
$args['category_name'] = $themotion_cat;
}
$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', 'about' );
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();
?>
', '' ); ?>