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自定義文章類型
- 2. WordPress自定義文章類型Single.php?
- 3. WordPress的自定義文章類型
- 4. WordPress的自定義文章類型PHP
- 5. Wordpress自定義評論
- 6. 自定義Wordpress評論表
- 7. wordpress自定義評論表
- 8. 自定義wordpress評論css類
- 9. 自定義文章類型的WordPress自定義搜索頁面
- 10. 如何獲得WordPress中的自定義評論類型的總評論數
- 11. 自定義文章類型
- 12. 對自定義帖子類型的WordPress評論
- 13. WordPress自定義帖子類型單頁(評論)
- 14. 獲取特定產品在WordPress的自定義文章類型
- 15. 使用WordPress殼和編寫自定義文章類型
- 16. 排序和顯示自定義文章類型的WordPress
- 17. Wordpress - Oder by Taxonomie使用get_post_types和自定義文章類型
- 18. WordPress的自定義文章類型和永久鏈接重寫
- 19. WordPress的 - 訂單自定義文章類型通過自定義分類
- 20. 在自定義文章類型中添加鏈接 - Wordpress
- 21. 在wordpress中更改自定義文章類型url/slug?
- 22. 在頁面上的WordPress分頁自定義文章類型
- 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