• Resolved layscough

    (@layscough)


    Hello,

    I’m working with a custom post type called ‘Team’. This archive is found on the About section of the website, so I have set the archive URL to be /about/team, which is working fine.

    However, my Yoast breadcrumbs widget is not recognising the Team archive as a child of About.

    Is there a way to set the custom post type archive as a child of another page? Or is my only option to disable the archive and display the custom posts on a normal page, which can be set as a child of About?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi @layscough

    As a whole I’ve never really heard of archives having parents.

    Based on what you’ve provided thus far, I’m suspecting you’re maybe doing a custom WP_Query call on this about/team url. Perhaps you have a page named “team” as well, and you’re outputting the posts from the post type there? In that case, you’re not actually using an archive at a technical level, but the page does output items and may even include pagination.

    Regarding Yoast Breadcrumbs, it is likely needing an actual archive to properly construct itself, and that’s not something CPTUI’s code is going to be able to affect.

    Thread Starter layscough

    (@layscough)

    Hmm okay, thanks for the quick response!

    I’m building with Elementor, and customising the archive layout with their theme builder (there is no static page called ‘Team’). However, given your info, it may be easier for me to turn Archive off for the post type, and just create a standard static page to call the posts.

    Edited to add – the breadcrumbs do work. However on the Team archive, it only shows ‘Team’ and no ‘About’ before it, despite the fact the URL is correctly showing /about/team.

    Thanks again.

    • This reply was modified 7 months, 2 weeks ago by layscough.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    You’d need to check with Yoast support for that part.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can a custom post type archive have a parent?’ is closed to new replies.