How to make Tag Aliases

How would I build something like this with wordpress. Where multiple tags texts all go to the same page.
enter image description here

If you click on the tag “scifi” it takes you to tag “science fiction”. I am not looking for a way to merge them.

I want the tag text to vary, but the end page to be the same. Any Ideas?

A physical redirect shouldn’t be needed. The tag text of X needs to be linked to Y when wordpress builds the link.

Example: If I type “scifi” as a tag, and the link gets build as
<a href="https://wordpress.stackexchange.com/tag/science fiction">scifi</a> and therefore the tag is an alias for “science fiction”.

Where would I hook in to do this?

3 Answers
3

Have not tested tested yet, but I see in the Codex page for wp_insert_term there’s one argument alias_of, which is described:

There is no default, but if added, expected is the slug that the term
will be an alias of. Expected to be a string.

Maybe it helps 😉

Leave a Comment