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

Is there such a feature in WordPress, that you have one tag which is the alias for another?


Muhammad Ali and Cassius Clay is the same thing. I have two separate tags for each. And I tag my article only with "Muhammad Ali", while another colleague of mine could tag another article which talks about the same boxer as "Cassius Clay". And we want our visitors to be able to click on either term (that is "Cassius Clay" or "Muhammad Ali") and end up on the same URL.

Now, where does this come handy you may ask...

When I display my tag cloud alphabetically, wouldn't it be nice for the visitors to be able to go to either C's or M's and spot the topic regardless?.
So, when you go to the C's, and click on "Cassius Clay" in there, you end up on the same URL as those who scan the M's and click on "Muhammad Ali".

I guess the functionality I need here is the same as that is found at the back of many books. You go look up a term (ex: Cassius Clay) at the index, and you read something like "see Muhammad Ali" eventually getting you to the correct page.

If WordPress does not have a solution for this, my back up plan is to analyze the terms using the Google trend tool and pick the one which has the better volume and go with that as the first term and postfix the other term into parenthesis, i.e, "Muhammad Ali (Cassius Clay)".

This unfortunately won't help those users who seek the topic under the wrong alphabetical heading.

I'd like to hear your opinions on this.

share|improve this question
up vote 3 down vote accepted

You can't do it via the admin UI, but there is an alias_of argument for wp_insert_term which accepts a slug for the term you want it to be an alias of. In practice, I don't know exactly how this works. See this thread from wp-hackers.

share|improve this answer
thank you for your answer Milo. I'd like to hear more opinions/solutions about this. So before I can select your answer as the one, I'd like to wait a little more. I also asked the same q on hackers list. I will share any input in this regard if anything comes up. – Average Joe Nov 15 '12 at 17:59

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.