包含带有短划线文件名的自定义模板

<?php get_template_part( 'foo','bar' ); ?>

包括

../wp-content/themes/your-theme-slug/foo-bar.php