I have this custom structure set for my permalinks: /archive/%postname%
With this, my URLs show as example.com/parent/child, which is the desired behavior. However, I'm adding a custom post type and this permalink structure is causing undesired URLs for the CPT. I want the permalink to be example.com/news/headline, but I'm getting example.com/archive/news/headline.
Here's my CPT:
register_post_type('news', array( ... 'public' => true, 'rewrite' => array('slug' => 'news'), 'supports' => array( 'title', 'page-attributes', 'editor', 'custom-fields') ));
Is there a better permalink structure I could use to achieve the URLs I require? Or is there something missing/wrong in my CPT that would fix this issue?