获取特定文件

你可以使用此功能获取特定文件。

get_template_part('template-parts/layout');

包含放置在主题文件夹根目录中的 template-parts 子目录中的 layout.php 文件。