How to stop wordpress from showing the selected category on top of others in the category selection?

wordpress.stackexchange https://wordpress.stackexchange.com/questions/387198

  •  26-04-2021
  •  | 
  •  

Question

By default in the category chooser at the edit post screen wordpress displays the selected categories on top of the others, i find that extremely annoying and i would like to disable the feature even if i need a hack for this.

Était-ce utile?

La solution

If I got this right, you need this plugin: Category Checklist Tree.

On the post editing screen, after saving a post, you will notice that the checked categories are displayed on top, breaking the category hierarchy. This plugin removes that "feature".

Additionally, it automatically scrolls to the first checked category.

Works with custom taxonomies too.

Autres conseils

Go to wp-admin/includes/template.php

In method wp_terms_checklist, change 'checked_ontop' value to 'false'

Licencié sous: CC-BY-SA avec attribution
Non affilié à wordpress.stackexchange
scroll top