0
A
回答
0
這就是你把這個屬性在這一行「意見」非常重要的是:在你的functions.php文件
'supports' => array('title', 'editor', 'comments', 'excerpt', 'custom-fields', 'thumbnail', 'revisions', 'author', 'page-attributes'),
// register post type MySpecialPost
add_action('init', 'register_cpt_MySpecialPost');
function register_cpt_MySpecialPost() {
$labels = array(
'name' => _x('MySpecialPost', 'MySpecialPost'),
'singular_name' => _x('MySpecialPost', 'MySpecialPost'),
'add_new' => _x('Ajouter', 'MySpecialPost'),
'add_new_item' => _x('Ajouter une MySpecialPost', 'MySpecialPost'),
'edit_item' => _x('Modifier', 'MySpecialPost'),
'new_item' => _x('Nouvelle MySpecialPost', 'MySpecialPost'),
'view_item' => _x('Voir la MySpecialPost', 'MySpecialPost'),
'search_items' => _x('Recherche', 'MySpecialPost'),
'not_found' => _x('Aucune MySpecialPost trouvé', 'MySpecialPost'),
'not_found_in_trash' => _x('Aucune MySpecialPost trouvé', 'MySpecialPost'),
'parent_item_colon' => _x('Parent Service:', 'MySpecialPost'),
'menu_name' => _x('MySpecialPost', 'MySpecialPost'),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'supports' => array('title', 'editor', 'comments', 'excerpt', 'custom-fields', 'thumbnail', 'revisions', 'author', 'page-attributes'),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 21,
'show_in_nav_menus' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
'has_archive' => true,
'query_var' => true,
'can_export' => true,
'rewrite' => true,
'capability_type' => 'page'
);
register_post_type('MySpecialPost', $args);
}
的[評論不是在自定義後類型顯示
相關問題
- 1. WordPress的3自定義文章類型:如何獲得評論
- 2. WordPress自定義文章類型Single.php?
- 3. WordPress的自定義文章類型PHP
- 4. wordpress自定義文章類型
- 5. wordpress自定義評論表
- 6. 自定義文章類型
- 7. 對自定義帖子類型的WordPress評論
- 8. 獲取特定產品在WordPress的自定義文章類型
- 9. 使用WordPress殼和編寫自定義文章類型
- 10. WordPress的自定義文章類型和永久鏈接重寫
- 11. 在wordpress中更改自定義文章類型url/slug?
- 12. 如何在wordpress中只讀自定義文章類型?
- 13. 在自定義文章類型中添加鏈接 - Wordpress
- 14. WordPress自定義評論字段 - 驗證
- 15. 自定義WordPress評論帖子查詢
- 16. 自定義文章類型類別名稱wordpress
- 17. WordPress的自定義文章類型顯示圖像爲類別
- 18. WordPress的自定義文章類型與類別檔案頁
- 19. 自定義文章的Wordpress自定義文章
- 20. 自定義文章類型類別
- 21. WordPress的頁面和自定義文章
- 22. 的WordPress 3.3自定義字段模板,自定義文章類型
- 23. 自定義WordPress郵寄類型的博客文章
- 24. WordPress的自定義文章類型重寫
- 25. 自定義文章類型顯示縮略圖 - WordPress的
- 26. WordPress的自定義文章類型導航+兒童
- 27. WordPress的自定義文章類型檔案
- 28. WordPress的自定義文章類型不能訪問子頁
- 29. 顯示自定義文章類型電網的WordPress
- 30. 自定義文章類型的Wordpress附件插件
可能重複 - WordPress的](http://stackoverflow.com/questions/7604206/comments-not-showing-in-custom-post-type-wordpress) – mercator