#30721 closed defect (bug) (duplicate)
Categories not displaying correctly while posting
Reported by: | Xtr3m3X | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.0.1 |
Component: | Taxonomy | Keywords: | |
Focuses: | ui, administration | Cc: |
Description
Hello,
I am seeing an issue with my site where the categories/subcategories tree isn't displaying correctly when editing a post. The categories are displaying and are setup correctly when viewing Posts > Categories. When editing a post, subcategories show up as main categories, rather than subcategories. This creates a big mess when working with many levels of subcategories.
I have submitted a ticket to my host (WPEngine) about this problem. After further testing by their support engineers, they came to the conclusion that it is a WP bug. They found out that when the count row in the wp_term_taxonomy table is set to a 0 value, categories do not show up ordered correctly within the post. However, if the value is anything but 0, it will show in all posts, be it that they exist or are newly created.
Please advise on this issue.
Thank you
Duplicate of #10982, #14723, #14916, #16475, #17135, #17317, #17835, #19880, #20160, #21544, #21127, #29871.
This is intentional, see #10982. A filter was introduced in #20054, allowing plugins to change that behaviour.
This plugin implements the change: https://wordpress.org/plugins/category-checklist-tree/.