Looking to override permalink structure for custom post type
-
Hi, I am working on a site where we changed the permalink stucture in the settings so that the blog posts have this structure
/blog/%postname%/
I created a custom post type and set this attribute in the register_post_type
‘rewrite’ ? => array( ‘slug’ => ‘swag’ ),
however the archive pages show up as /blog/swag and the singles are like /blog/swag/%postname%/
Is there any way to override the setting in the permalink setting page for the custom post type so that the archive is just /swag and the individual pages are /swag/%postname%/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Looking to override permalink structure for custom post type’ is closed to new replies.