• I have a wordpress site with 4.4.2 version. I have been using this plugin perfectly for months but, sudendly, when I enter in any post or custom post where I have a custom taxonomy, “movies” in my case, I can see in the checkbox many empty rows. This is a partial from the google inspector output:

    <ul id="filmschecklist" class="list:films categorychecklist form-no-clear">
    
    <li id="films-3032"><label class="selectit"><input value="3032" type="checkbox" name="_custom_post_type_onomies_relationship[films][]" id="in-films-3032" checked="checked"> Teen Wolf</label></li>
    
    <li id="films-881"><label class="selectit"><input value="881" type="checkbox" name="_custom_post_type_onomies_relationship[films][]" id="in-films-881"> ¡Aterriza Como Puedas!</label></li>
    
    <li id="films-4242"><label class="selectit"><input value="4242" type="checkbox" name="_custom_post_type_onomies_relationship[films][]" id="in-films-4242"> ¡Biba la banda!</label></li>
    
    <li id="films-882"><label class="selectit"><input value="882" type="checkbox" name="_custom_post_type_onomies_relationship[films][]" id="in-films-882"> ¡Jo, Que Noche!</label></li>
    
    <li id="films-"><label class="selectit"><input value="" type="checkbox" name="_custom_post_type_onomies_relationship[films][]" id="in-films-"> </label></li>
    
    <li id="films-"><label class="selectit"><input value="" type="checkbox" name="_custom_post_type_onomies_relationship[films][]" id="in-films-"> </label></li>
    
    <li id="films-"><label class="selectit"><input value="" type="checkbox" name="_custom_post_type_onomies_relationship[films][]" id="in-films-"> </label></li>

    This is a snapshot

    I have fixes it in admin.php file in start_el function, line 1329

    function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {
    extract( $args );
    if ( ! empty( $taxonomy ) && $object->term_id ) {
    $class = in_array( $object->term_id, $popular_cats ) ? ' class="popular-category"' : '';
    $output .= "\n<li id='{$taxonomy}-{$object->term_id}'$class>" . '<label class="selectit"><input value="' . $object->term_id . '" type="checkbox" name>
    }
    }

    I have checked the integrity of my data by quering database for films without title or posts with post_type ‘films’ but all seems ok.

    There are anyone with same problem?

    Thanks

    https://ww.wp.xz.cn/plugins/cpt-onomies/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Empty rows in checkbox list’ is closed to new replies.