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