I have a client who would like a category created with a comma in it. So the category will be:
Fuel, Oil And Propane
However, using a comma in the title breaks the relation to the slug and makes it so WordPress does not find the category posts and shows the category as empty. When I remove the comma from the text title – i.e. make the category “Fuel Oil And Propane”, the posts all appear correctly, so it is clearly the comma breaking the slug from finding the posts that it needs to pull.
This seems like it would be a common problem as many people would want to create categories with commas. Does anyone have a solution for this? Either with the slug, or with some other code I can add?
Thanks for any help!
- The topic ‘Using Commas In Category Names’ is closed to new replies.