I'm trying to create a custom permalink structure that will allow me to accomplish the following.
- I have a custom post type called "projects"
- I have a custom taxonomy called "project-category" that is assigned to the CPT "projects"
I want my permalink structure to look like this:
projects/category/project-name
or
/%custom-post-type%/%custom-taxonomy%/%post-name%/
I've been able to succesfully use /%category%/ in permalinks for normal, out-of-the-box WP posts, but not for CPTs.
How would creating such a permalink structure affect the URLs or other pages? Is it possible de define a custom permalink structure and restrict it to a single CPT?
Thanks
Lucky for you, I just had to do this for a client project. I used this answer on the WordPress Stackexchange as a guide:
When registering the custom post type and taxonomy, be sure to use the following settings:
Of course, be sure to flush rewrite rules when you're done. Good luck!
While you registering your custom post type used slug as
You can try with Setting->permalink
make parent of that post also make your link