WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I add the C++ tag, when updating the post it gets converted to C#. If I add the ++ tag, there's no conversion.

Encoding for pages and feeds is UTF-8. Wordpress version 3.0.1

share|improve this question
up vote 4 down vote accepted

I can duplicate this behavior. Probably a bug. Only alphanumeric characters and dashes are allowed in tag slugs, so my slugs for C++ and C# were created as "c" and "c-2," respectively. Adding these tags to a new post by name rather than slug lumped them all into C#. (Or was it C++? Either way, they evaluated to the same.)

Manually updating the slugs to "cpp" and "csharp" worked around the bug in my install. Have you customized your tag slugs, or are they "c" and "c-2?"

Update: taxonomy.php does check that the slug matches before checking the full tag name, and they both evaluate to the same slug ("c"), hence the incorrect match.

share|improve this answer
Updating the slugs works, thanks. – anno Sep 26 '10 at 11:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.