Here’s the scenario I need to handle:
A custom post type serving single post pages with a slug of “real-estate/post-title/“
A real estate page with the slug of “/real-estate/“
A child page of the real estate page with a slug of “real-estate/london/“
The issue here is if I create a custom post type of “real-estate” it then precludes me from creating a page of real-estate, as the real-estate slug is reserved for the post types archive.
If I go with the archive page and just adapt it to suit, I still have the issue of creating the sub page for London.
If I set has_archive => false for my real-estate post type, I can create both the real-estate page and real-estate/london sub page, but I cannot rewrite the slug for my post type to use /real-estate/post-title as this then prevents the london page from being accessible.
Any thoughts? I’m sure I’m just tired and missing the obvious solution here.
[ad_2]