Is it possible to use a post name in a custom post slug?
Rewrite is a global base for all posts under the custom post type. For example, this is the default CPT rewrite structure: example.com/lesson/%postname% In your code example, it’s implying you are trying to do: example.com/%postname%-lesson/%postname% Two issues with this idea. The first issue, assuming this functionality worked, is that your CPT urls would all be … Read more