Select Page
想要新增一個靜態頁面〈Static page〉的檔案,擁有相同的佈景頁面,它的建置語法可以參考如下: <?php require_once('./wp-config.php'); $single = 1; $siteurl = get_settings('siteurl'); $themes = get_themes(); $current_theme = get_current_theme(); $current_template_dir = $themes[$current_theme]['Template Dir']; include($current_template_dir . "/header.php"); ?> <div id="content" class="widecolumn"> Include other template files in this manner: </div> <?php include($current_template_dir . "/sidebar.php"); ?> <?php include($current_template_dir . "/footer.php"); ?> 想要新增一個像是關於我的頁面,都可以使用這樣的語法新增頁面。