Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Custom post type and breadcrumbs

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi,

    I am having a similar issue with case studies as posts being displayed on a page. When i click on a case study title, the path is:
    Home » Case Studies » Turbine Provides Savings and Education to South Elementary as seen here: http://talcoturbines.com/turbine-provides-savings-and-education-to-south-elementary/

    The problem is, when you click on “case studies” it takes you NOT to the page, but displays the posts as categories (and not the page). I added the code to the casestudiespage.php template.

    Any luck finding a solution?

    Plugin Author Joost de Valk

    (@joostdevalk)

    It’s a setting under SEO -> Internal links…

    Ive already played around with the settings and it isnt quite working how i need, so ive added this to my header

    <?php if ( is_singular( 'case-studies' ) ) { ?>
    <p id="breadcrumbs">You are here: <a href="http://www.soil-engineering.co.uk">Home</a> > <a href="http://www.soil-engineering.co.uk/case-studies/">Case Studies</a> > <strong><?php the_title(); ?></strong></p>
    <?php } else { ?>
    	 <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
    <?php }?>

    Which seems to do the trick.

    Plugin Author Joost de Valk

    (@joostdevalk)

    Weird. You doing custom stuff?

    Yes, custom post type using custom taxonomies to organise the posts.
    You can view the result here

    I needed the breadcrumb to be Home > Case studies > title, using the internal links setting i was getting Home > Custom Taxonomy > title.

    So im not saying the plugin is broken, just not working how i needed.

    Plugin Author Joost de Valk

    (@joostdevalk)

    but is the “case studies” page a proper custom post type archive defined by WP or a custom page template?

    Im using a custom page template.

    Plugin Author Joost de Valk

    (@joostdevalk)

    Then that’s the issue, the plugin has no way of knowing that…. Your hack will work. In the future I’d advise using proper custom post type archives 🙂

    Hi i’ve the same issue.

    I’ve created a custom post type, and i’ve a single-custom_post_type.php and a archive-custom_post_type.php.

    The archive-custom_post_type.php is a custom template, so i have created a blank page with that template for display my custom_post_type posts.

    When i click to the permalink to the single post it works (wordpress load the single-custom_post_type.php) but in my breadcrumbs i’ve Home->Blog->custom_post_title, the correct structure is Home->custom_post_type->custom_post_title.

    How can i do?

    Thank you

    I believe there is a check box within the internal links settings to remove blog page from breadcrumbs. Have you tried that?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Custom post type and breadcrumbs’ is closed to new replies.