php - Remove CPT's taxonomy base slug from wordpress URL
one text
Solution:
When registering your CPT you provided some arguments... One of the arguments is 'rewrite'. You can provide an array of options,like 'slug', 'with_front', 'pages', etc.
Maybe you can try to set the slug to be empty? Or to be '/'?
$args = [
...
'rewrite' => ['slug' => '', 'with_front' => false],
...
];
register_post_type('your-cpt-slug', $args);
I hope it works!
Source