Add custom permalink prefix
-
Hello,
is it possible to add a custom prefix to the CPT permalink structure?
My CPT name is eg.books
so my default permalink for posts would bemysite.com/books/post-name
. However my CPT in terms of the page navigation is under a higher/parent menu, eg.Products
. So I’d like to have a permalink for each of mybooks
post asmysite.com/products/books/post-name
. I tried adding/products/
in theCustom Rewrite Slug
setting which makes the post permalink as I want, but when opening the post the page returns a 404 page. Tried flushing permalink structure, but didn’t help.
Any way to achieve that?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add custom permalink prefix’ is closed to new replies.