Custom rewrite
-
Hi all,
What i want:
I want to be able to create posts with a custom url like this:
mywebsite.com/plastic-surgery/before-and-after/nose-surgery/nose-1
I have created a custom post type called “before and after”.
I have also created a custom taxonomy call “surgery types” and added “nose-surgery”
how do i get this to display
mywebsite.com/plastic-surgery/before-and-after/nose-surgery/nose-1
I assumed i would write this in the custom url rewrite
mywebsite.com/plastic-surgery/before-and-after/%surgery-types%
BUT this does not work.
I also tried without the custom taxonomy
mywebsite.com/plastic-surgery/before-and-after/%category%
this also doesnt work
HELP?
Stay safe/ Stay Positive
The topic ‘Custom rewrite’ is closed to new replies.