get_template_part for custom post type content not working

You have a couple of issues with your code.

  • You have to set your loop to your custom query. As it stands, it is set to the main query

  • You must always reset postdata with all instances of WP_Query

Your code should be something like this

<?php $args = array('post_type' => 'textorial');
$query = new WP_Query( $args );
while ($query->have_posts() ) : $query->the_post();

    get_template_part( 'content', 'textorial' );

endwhile; 
wp_reset_postdata(); ?>