• Hi
    I am using this great plugin and everything is working perfectly except on my custom post type. the situation is this:
    I have a “portfolio” page which is a page template basically and it holds all my portfolio items. when you click on one of the items it takes you to the the post type itself but in the breadcrumb above it shows:
    Home – Blog – “the name of the portfolio item”
    I understand that it treats it like a post, therefore it shows the “blog” before the post type even though the parent is the portfolio page and not the blog but wonder is there is anyway to work around it and fix it.
    maybe something manual..
    any help will be appreciated

    Gil

    https://www.ads-software.com/extend/plugins/breadcrumbs/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Make sure you have this in your custom post function:

    'has_archive' => true,

    Once you have that in place, the Yoast SEO plugin will let you select the custom post type as the parent page.

    Thread Starter hamergil

    (@hamergil)

    I will try that.
    Thanks a lot!

    Thanks drummergirl!
    i’ve done so many sites with custom post types and breadcrumbs and could not for the life of me figure out why my base custom post type name wasn’t showing in my breadcrumbs… UNTIL… i googled and found this ??

    I forgot to to enable the “has_archives” by mistake… once i put that in, ta da! all is well in the world. No more 404’s on the main custom post type “archive” page and its showing in my breadcrumbs as expect.

    cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Yoast breadcrumbs and custom post type’ is closed to new replies.