Remove base slug on Custom Post Type?
I know it’s possible to customize the base slug when registering a CPT, but is it possible to completely remove the base?
E.g. I want to make the url example.com/headline/ rather than example.com/slugname/headline/
This didn’t work:
'rewrite' => array('slug' => '', 'with_front' => true, ),
- The topic ‘Remove base slug on Custom Post Type?’ is closed to new replies.