I use categories quote a bit in WordPress.
Wanted to determine whether there are workarounds for adding categories that have commas in their names.
- Using the Classic Editor, In the Post
- Enclose category in double quotes
- Enclose category in single quotes
- Category Screen
Use Double Quotes
Within the post, add a new category and enclose the new category in double quotes.
That is, when adding Paris, France enter “Paris, France”.
Unfortunately, WordPress did not keep our city, “Paris, France“, as one.
Two entries were created.
Our added entries are:-
Editor – Add “Paris, France”
Editor – Added “Paris, France” – “Paris
Editor – Added “Paris, France” – France
Use Single Quotes
Within the post, add the new category and enclose the category in single quotes.
This time when adding Paris, France enter ‘Paris, France’.
The same experience.
WordPress did not keep our city, ‘Paris, France’, as one.
Again, two entries were created.
The two entries being:-
Editor – Add ‘Paris, France’
Editor – Adding ‘Paris, France’ – “Paris
Editor – Adding ‘Paris, France’ – France
Please access the categories screen via the Admin Menu.
Using the categories screen is really your best option for managing categories.
This only affects the classic editor.
The block editor does not exhibit this issue.