-1
是否可以使用「get_template_part」更改「require_once」?如何使用「get_template_part」更改「require_once」
在我的WordPress的文件,我試圖改變這一行:
function upthemes_admin_home() {require_once('home.php');}
是這樣的:
function upthemes_admin_home() {get_template_part('home'); }
但沒有奏效。任何人,請幫助。 感謝您的好意。
是的BebliucGeorge。你是對的,我弄錯了路徑。謝謝 –