admin管理员组文章数量:1130349
I have several sub-categories set up. Everything displays properly as far as nesting (see below) when creating a new post.
Category 1
--Sub Category 1
--Sub Category 2
--Sub Category 3
Category 2
etc
After I select a sub-category, then go back and edit a post, the sub category that I check shows up like this (note how it's not nested under Category 1):
(checkmark) Sub Category 2
Category 1
--Sub Category 1
--Sub Category 3
Category 2
etc
Is this a bug in WordPress 3.1.2? Can someone tell me how to fix it? I don't remember it doing this when I was running 3.0.5 (but there's a chance it could have).
I have several sub-categories set up. Everything displays properly as far as nesting (see below) when creating a new post.
Category 1
--Sub Category 1
--Sub Category 2
--Sub Category 3
Category 2
etc
After I select a sub-category, then go back and edit a post, the sub category that I check shows up like this (note how it's not nested under Category 1):
(checkmark) Sub Category 2
Category 1
--Sub Category 1
--Sub Category 3
Category 2
etc
Is this a bug in WordPress 3.1.2? Can someone tell me how to fix it? I don't remember it doing this when I was running 3.0.5 (but there's a chance it could have).
Share Improve this question edited Sep 19, 2011 at 23:30 kaiser 51k27 gold badges151 silver badges245 bronze badges asked May 23, 2011 at 16:14 user1462user1462 1,3043 gold badges17 silver badges23 bronze badges2 Answers
Reset to default 8This "feature" has been in WP for quite a while.
You can disable it by installing this small plugin:
http://wordpress/extend/plugins/category-checklist-tree/
It was mentioned that scribu's plugin hasn't been updated in four years. However, the plugin is fairly simple and the most important part is this:
add_filter( 'wp_terms_checklist_args', function( $args ) {
$args['checked_ontop'] = false;
return $args;
} );
That's what the plugin mainly does — plus some JavaScript to scroll to the first category checkbox that is checked. But that's just for convenience.
I have several sub-categories set up. Everything displays properly as far as nesting (see below) when creating a new post.
Category 1
--Sub Category 1
--Sub Category 2
--Sub Category 3
Category 2
etc
After I select a sub-category, then go back and edit a post, the sub category that I check shows up like this (note how it's not nested under Category 1):
(checkmark) Sub Category 2
Category 1
--Sub Category 1
--Sub Category 3
Category 2
etc
Is this a bug in WordPress 3.1.2? Can someone tell me how to fix it? I don't remember it doing this when I was running 3.0.5 (but there's a chance it could have).
I have several sub-categories set up. Everything displays properly as far as nesting (see below) when creating a new post.
Category 1
--Sub Category 1
--Sub Category 2
--Sub Category 3
Category 2
etc
After I select a sub-category, then go back and edit a post, the sub category that I check shows up like this (note how it's not nested under Category 1):
(checkmark) Sub Category 2
Category 1
--Sub Category 1
--Sub Category 3
Category 2
etc
Is this a bug in WordPress 3.1.2? Can someone tell me how to fix it? I don't remember it doing this when I was running 3.0.5 (but there's a chance it could have).
Share Improve this question edited Sep 19, 2011 at 23:30 kaiser 51k27 gold badges151 silver badges245 bronze badges asked May 23, 2011 at 16:14 user1462user1462 1,3043 gold badges17 silver badges23 bronze badges2 Answers
Reset to default 8This "feature" has been in WP for quite a while.
You can disable it by installing this small plugin:
http://wordpress/extend/plugins/category-checklist-tree/
It was mentioned that scribu's plugin hasn't been updated in four years. However, the plugin is fairly simple and the most important part is this:
add_filter( 'wp_terms_checklist_args', function( $args ) {
$args['checked_ontop'] = false;
return $args;
} );
That's what the plugin mainly does — plus some JavaScript to scroll to the first category checkbox that is checked. But that's just for convenience.
本文标签: Why aren39t subcategories nested after creating post in the WP Admin
版权声明:本文标题:Why aren't sub-categories nested after creating post in the WP Admin? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749124758a2319596.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论