Opened 8 years ago
Closed 6 years ago
#38934 closed defect (bug) (duplicate)
Bug with Category selector view when using child categories
Reported by: | Venutius | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.1 |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
Description
There seems to be a bug when editing a page and using child categories.
Lets say I have a category with ten child categories.
If I add on of those children to the page and then save the page, when I come back to look at those categories the parent child relationship is lost in the display. What I mean by this is that the master category will noly display one child (the one that was picked for the page) the other children are now displayed as if they were independent top level categories.
This makes it very difficult to select the right categories for a post when you come back to edit it.
The workaround is to deselect all categories and save the page. The parent child relationship will then re-establish itself and the categories can be selected.
Hi @Venutius,
My apologies that it took so long for someone to respond to your ticket.
This was discussed many times in the context of the classic editor (see #3130, #14916, #10982 and the many duplicates mentioned in #10982's history).
Since this ticket was opened, the new block editor was released in WordPress, and it actually includes the improvement that you are suggesting. I have attached a screenshot showing the new behavior.
In short, all selected categories still rise to the top, but their hierarchy is also pulled up, even when the parent categories are not selected. When there are more than a handful of categories, a search box is also displayed to filter categories. The results of the search also maintain the hierarchy.