• I have a few custom taxonomies set up.

    What I’d like to know is, is there a way (perhaps with a plugin) to have two entries point to the same term? As, one is an alias to another?

    Suppose you had a movie blog, and the name of the studio entered for two movies was ‘Warner Bros’ and ‘WB Films’ respectively, but you wanted them to alias each other, so whichever the user clicks on would retrieve all entries with either in.

    Man that’s hard to explain. I guess it’s like asking: ‘can one category be an alias for another?’ – except here it’s for custom taxonomies.

Viewing 1 replies (of 1 total)
  • It seems to me that there’s really only one category. It has two names in the user interface. I don’t see any need for it to have two slugs. So one approach is to tweak the user interface so that both names appear (for example, in a custom menu), but have them link to the same category.

    Another approach would be to say that there really are two categories, and write a plugin to ensure that every post is either in both categories or in neither.

    And another approach is to have a phoney slug as the alias, with no corresponding category. If the phoney slug appears in a URL, plugin code changes it into the real slug.

    I have no idea what happens if you force two terms to have the same slug in the wp_terms table — I suspect it might not turn out well.

Viewing 1 replies (of 1 total)
  • The topic ‘How to alias one slug to another?’ is closed to new replies.