獲取特定檔案

你可以使用此功能獲取特定檔案。

get_template_part('template-parts/layout');

包含放置在主題資料夾根目錄中的 template-parts 子目錄中的 layout.php 檔案。