我有一個名爲企業的CPT,並在其中創建了帖子,但是,當我點擊任何帖子時,它們顯示一個空白頁面。有人知道爲什麼 <?php
//create a custom post type for new businesses
function create_businesses() {
$labels = array(
'name' => 'Our Businiesses'
在我試圖找出當前問題的解決方案時,我的頭撞牆。簡而言之,我創建了一個'page-home.php'模板頁面,可以獲取一個元框以調用頁面模板,但嘗試使用元框中的數據更新頁面會使數據消失。下面 代碼: function page_add_meta_boxes($post) {
global $post;
if(!empty($post))
// get the page