• Hello,

    When your post is in a sub-category and you go to edit it, then when you see the categories displayed in the ‘Edit Post’ page, its subcategory is checked, but it is no longer listed under its parent category, it moved to the top of the list and is not indented (which makes it seem like a top-level parent category)

    This is rather counter-intuitive and confusing, it would be much easier if it just stays in its place.

    Does that make sense? Is there an easy way to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I also faced same issue.To fix this one i had to change wordpress code.

    So i just commented these lines on this page wp-admin/includes/template.php from line no 291

    /* foreach( $keys as $k ) {
    if ( in_array( $categories[$k]->term_id, $args[‘selected_cats’] ) ) {
    $checked_categories[] = $categories[$k];
    unset( $categories[$k] );
    }
    }
    */

    I know this post is a little old, but I was having this problem as well. Kapil’s solution refers to an older version of WP; to do this in the current version (3.1.2) edit wp-admin/includes/template.php line 91 from:
    'checked_ontop' => true
    to this:
    'checked_ontop' => false

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sub-category display problem in 'Edit Post' page…’ is closed to new replies.