Permalinks and custom post type
-
My client asked for blog pages to be prefixed with /blog
I adjusted this in permalinks so I now have /blog/%postname%/
this works fine for my posts
I also have a custom post type and associated taxonomy which are now prefixed with /blog throughout.
I tried the following but it results in 404’s on my cpt pages
‘rewrite’ => array(‘with_front’ => false, ‘slug’ => ‘your-slug’)
I have visited the permalinks pages each time I make changes but it doesn’t help.
I have an extensive rewrite for my custom post type and taxonomy as I needed them to both share the same slug, I’m wondering if this is the cause.
I have seen a few people have this issue with permalinks /blog and custom post types, have tried those fixes but always get 404’s
- The topic ‘Permalinks and custom post type’ is closed to new replies.