Category in URL instead of post type
-
I was wonder if this is possible and how:
suppose I have a custom post type “Persons” with slug “person” and suppose “John Smith” is a person: I can access his page through the following URL:
https://www.example.com/person/john-smith/
Now, suppose I have the category “Actors” and suppose I apply it to the “person” John Smith; if I access the following URL:
https://www.example.com/actors/
John Smith will be listed in that page, but its URL will still be:
https://www.example.com/person/john-smith/
I was wondering if there is a way so that I can access John Smith’s page also through the URL:
https://www.example.com/actors/john-smith/
That would be nice, because you can suppose that I have another category named “Directors” and, guess, John Smith is also a movie director and, guess again, I was wondering if there is also a way so that I can access John Smith’s page even through the URL:
https://www.example.com/directors/john-smith/
In summary, I was wondering if there the possibility to access the same exact page through the following URLs:
https://www.example.com/person/john-smith/
https://www.example.com/actors/john-smith/
https://www.example.com/directors/john-smith/obviously keeping the URL as it is, with no redirection.
What is happening now is that if I access
https://www.example.com/actors/john-smith/
I am redirected to
https://www.example.com/person/john-smith/
Thank you!
- The topic ‘Category in URL instead of post type’ is closed to new replies.