How to use get_template_part()?Doing so it's going to be necessary to change this if also. Like this if ( false === include(locate_template( 'loop-mycustomposttype.php')) )

Jan9

comment

How to use get_template_part()?Replace locate_template by this, please. include(locate_template( 'loop-mycustomposttype.php')) This way is possible to pass variables. I've found this here link. It's extremely useful!

How to return results of a get_posts() in explicitly defined orderOn the accepted answer, @dougal suggested to create two functions: set_include_order() and menu_order_sort(). There is no need for that. And besides, he suggested to use WP_Query instead of get_posts, as the question's author wanted. And post__in only works if you include the 'orderby' parameter too, like i suggested