WordPress.org

Ready to get started?Download WordPress

Forums

Yoast Breadcrumbs
Yoast breadcrumbs and custom post type (4 posts)

  1. hamergil
    Member
    Posted 2 years ago #

    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

    http://wordpress.org/extend/plugins/breadcrumbs/

  2. drummergirl
    Member
    Posted 2 years ago #

    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.

  3. hamergil
    Member
    Posted 2 years ago #

    I will try that.
    Thanks a lot!

  4. dizmarkie
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic