Check If Taxonomy A and Taxonomy B has same Slug, 301 Auto Redirect Tax A to Tax B if True in WordPress


Please How do I achieve this?

I have WordPress Default Taxonomy – Tag and a custom Taxonomy – Artist.

I want to check for TAGS that have the same slug as ARTIST and 301 redirect it to the ARTIST.

Example Check If: and have the same slug which is true.


Automatically 301 Redirect: to

If the slug is not the same, then do nothing.

I found this Answer but it’s not exactly what I need and I don’t know how to make it solve my problem. I am very new to WordPress development.


Joe Titus 6 months 2022-04-11T15:49:46-05:00 0 Answers 0 views 0

Leave an answer