I have a CPT that I would like to have the ‘root’-permalinks:
So for the page: ‘Foo Bar’ I would like that to have the URL:
https://example.org/foo-bar
I’ve found out that I achieve this by registering the CPT with the following line in the args
for register_post_type( 'my_CPT', $args );
:
'rewrite' => array('slug' => "https://wordpress.stackexchange.com/", 'with_front' => false)
However… When I add that, then my permalinks for my pages don’t work. I would ideally give them these permalinks:
https://example.org/page/some-page
How do I do that?