Viewing 4 replies - 1 through 4 (of 4 total)
  • Thanks a lot !

    This ‘fix’ throws an error for me on line 38. Any ideas?

    Anonymous User 8097816

    (@anonymized-8097816)

    Hello,

    The first message has a partial solution.

    From the current version 1.0.2, here are the changes to be made :

    Line 68
    is:

    <ul id="<?php echo $taxonomy; ?>checklist" class="list:<?php echo $taxonomy ?> categorychecklist form-no-clear">

    should be:

    <ul id="<?php echo $taxonomy; ?>checklist" data-wp-lists="list:<?php echo $taxonomy; ?>" class="<?php echo $taxonomy; ?>checklist form-no-clear">

    Line 93
    is:

    <input type="button" id="<?php echo $taxonomy; ?>-add-submit" class="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add button category-add-sumbit" value="<?php echo esc_attr($tax->labels->add_new_item); ?>" tabindex="3" />

    should be:

    <input type="button" id="<?php echo $taxonomy; ?>-add-submit" data-wp-lists="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy; ?>-add" class="button <?php echo $taxonomy; ?>-add-submit" value="<?php echo esc_attr($tax->labels->add_new_item); ?>" tabindex="3" />

    Basically, there was a slight mixup between the class attribute and the data-wp-lists attribute.

    The solution provided by rwatuny worked. It doesn’t properly add the category to the hierarchy so a page refresh is needed to show the newly added category at the correct level.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't Add new category in WP > 3.5 ? This is a solution’ is closed to new replies.