Options to achieve this

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer