问题描述
已创建 post_type 'Feed'
- 工作正常,帖子显示在管理面板中并存储数据。
尝试此代码但打开链接时返回错误:www.sitename.com/Feeds/test_post
"wp_die" "这不是有效的供稿模板"
register_post_type('Feed','labels' => [
'all_items' => 'All Feeds','name' => 'Feed',],'public' => true,'has_archive' => false,'rewrite' => array( 'slug' => 'Feeds' ),'hierarchical' => true,'menu_position' => 10,'capability_type' => 'page','supports' => ['title','editor','thumbnail'],]
);
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)