WordPress.org

Ready to get started?Download WordPress

Forums

Sub-category display problem in 'Edit Post' page... (3 posts)

  1. JonM191
    Member
    Posted 4 years ago #

    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?

  2. Kapil Chugh
    Member
    Posted 4 years ago #

    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] );
    }
    }
    */

  3. hOBOJoE
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.