if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); // run the loop ?>
include 'parts/loop-item-blog.php' ?>
endwhile; ?>
endif; ?>
if($the_query->found_posts > $posts_per_page) { ?>
echo get_next_posts_link( '', $the_query->max_num_pages ); // display older posts link ?>
echo get_previous_posts_link( '' ); // display newer posts link ?>
} ?>