Custom Post Type & Taxonomy Permanlink Rewrite Not Working
-
The last two days I have tried everything I can think of and can not get permalink rewrites to work on my custom post type and taxonomy.
You can see my register post type and custom taxonomy code here: https://pastebin.com/waKwFMHt (I temporarily set the rewrite to false after almost giving up).
At the moment the archive of a custom taxonomy is:
https://www.sampleurl.com/?project-type=projects
And a single post is in that taxonomy is:
https://www.sampleurl.com/?portfolio=post-name
From my understanding, just by setting rewrite true on both my taxonomy and post type, it should rewrite the two above as:
https://www.sampleurl.com/project-type/projects
https://www.sampleurl.com/portfolio/post-name
I couldn’t get that to work.
EDIT: It did change the urls to above but I get a 404 ??What I would ideally like to have is this:
https://www.sampleurl.com/portfolio/projects
https://www.sampleurl.com/portfolio/branding
https://www.sampleurl.com/portfolio/categoryname
.ect for any category of my custom post typeand then this for my single post in my custom post type.
https://www.sampleurl.com/portfolio/categoryname/postname
I’m really stuck and would greatly appreciate any help!
- The topic ‘Custom Post Type & Taxonomy Permanlink Rewrite Not Working’ is closed to new replies.