Why aren’t sub-categories nested after creating post in the WP Admin?

I have several sub-categories set up. Everything displays properly as far as nesting (see below) when creating a new post.

Category 1

Read More

–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).

Related posts

Leave a Reply

2 comments

  1. 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.