• I know this plugin probably isn’t being maintained anymore, but I figured I’d put a fix here in case it helps anyone out.

    I ran into a bug when trying to set a post’s term as a term with a comma in the name. For example, I have a taxonomy with a term named “A, B”. When I try to set a post’s term as “A, B”, instead, two new terms will be created: “A” and ” B”, and both will be added to the post, while only “A” will show in the dropdown box.

    The fix is to change line #33 from:

    echo "<select name='tax_input[{$tax_name}]' $disabled>";

    To:

    echo "<select name='tax_input[{$tax_name}][]' $disabled>";

    As far as I can tell, this should work, but it might not work in all cases.

    https://www.ads-software.com/plugins/single-value-taxonomy-ui/

  • The topic ‘Bugfix for terms with commas in the name’ is closed to new replies.