How to set an archive page as child of a page
-
Hey folks !
Here is the scenario I am currently working on :
I registered few custom post_types for an image gallery. All those custom post_types will be listed within a custom page template (names ‘Portfolio’).
I have enabled ‘has_archive’ property for all my custom post_types so that WP creates archive pages for each one.What I want to do is to set those archive pages as children of the page ‘Portfolio’ so that my url looks like ‘/portfolio/my_custom_post_types’ and my breadcrumb will be like ‘portfolio -> my_custom_post_type’.
The first solution that came to me is to disable ‘has_archive’ property for all the custom post_type and create standard child pages with a custom archive-page-looking template but I would like to keep everything where it belongs and not create unnecessary pages.
Is there a proper and clean way to do so?
Thank you for your time and happy end-of-year celebrations to you all
- The topic ‘How to set an archive page as child of a page’ is closed to new replies.