StackOverflow 文件 WordPress 教程 獲取模板部分() 在目錄中包含自定義模板 在目錄中包含自定義模板 Created: November-22, 2018 <?php get_template_part( 'dir/foo' ); ?> 包括 ../wp-content/themes/your-theme-slug/dir/foo.php 包括位於目錄內的帶有短劃線檔名的自定義模板包括自定義模板