Skip to content

It’s totally not a comma

Using a comma in data can sometimes be tricky. WordPress taxonomies, I’m looking at you. Try this character instead.

an apple and a lemon decorated with googly eyes

Commas are used to separate a list of things, but matters are complicated when an item in a list also has a comma. How can you tell if it indicates the next item in the list or not?

I’ve discovered that WordPress does not play nicely with taxonomy names (Tags, Categories, etc) that contain commas. You can enter the name correctly in the taxonomy editor screen, but when you save a post that has such a taxonomy term, WordPress will create multiple new taxonomy terms named by the words separated by the comma(s) and assign the post to these instead of the original. This is frustrating.

Modern problems require modern solutions

Despite being aware of the issue, after accidentally doing so several times I decided that it might be better to use a character that LOOKS like a comma but isn’t a basic comma.

I propose using the Single Low-9 Quotation Mark.

This is a regular comma , and this is a single low-9 quotation mark

Semantics aside, if it walks like a duck and quacks like a duck…

Unicode Code Point:U+201A
HTML Entity:‚
‚
‚
UTF-8 Encoding:0XE2 0X80 0X9A
UTF-16 Encoding:0X201A
UTF-32 Encoding:0X0000201A
Single Low-9 Quotation Mark reference