When I choose category from dropdown then everything working fine.But in backend it checked only child not parent [closed]

You can add custom columns in wp-admin to show parent category. It’s here my code, you can try it (I tested with post_type is post (default)).

 // Add the custom columns to the post post type:
add_filter( 'manage_post_posts_columns', 'set_custom_edit_post_columns' );
function set_custom_edit_post_columns($columns) {
    $columns['parent_cat'] = __( 'Parent Category', 'storefront' );
    return $columns;
}

// Add the data to the custom columns for the post post type:
add_action( 'manage_post_posts_custom_column' , 'custom_post_column', 10, 2 );
function custom_post_column( $column, $post_id ) {
    if($column == 'parent_cat'){
        $terms = get_terms('category');
        foreach ($terms as $term) {
            if($term->parent == 0){
                echo $term->name;
            }
        }
    }
}

Here is screenshot to view: http://nimb.ws/RpoV8W