permalink structure for single-{post-type}.php in wordpress October 14, 2022 by Tarik Billa Like you wrote above, you should use 'rewrite' => array( 'slug' => 'custom-post-type' ) when registering your post type.