• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • You will need to assign archive page a parent section through categories.

    Thread Starter Acoleno

    (@acoleno)

    Hello BryanWalters, thanks for your answering.

    I understand what you propose but I’m not sure I will fit to my needs. I will try to clarify it a bit.

    Here is a part of the hierarchy I would like :
    – Home

    – Blog (Default post type and default archive.php)
    – – Blog’s stuff (default single.php)

    – Portfolio (Custom Page with a custom template with some valuable info)
    – – My Custom Post Type archive page (this custom post type has specific taxinomy)
    – – – My Custom Post Type single item
    – – Another Custom Post Type Archive Page (no specific taxinomy)
    – – – Another Custom Post Type single item
    – – And so on few times

    As each custom post_type may have it own taxinomy, and default post_type is in use, I am afraid that using categories would be a real mess or maybe did I miss something?

    Is that what you understood?

    Thanks again for your time ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to set an archive page as child of a page’ is closed to new replies.