• Hi All…

    Hot some issues with custom post types & breadcrumbs.

    Implemented a directory on a website and when clicking on the directory link in the nav the breadcrumbs shows the following:

    You are here: Home ? Blog ? first directory entry title

    It should read:

    Home ? Directory

    We also got sub categories within our directory and when clicking on that sub category the breadcrumbs changes to:

    You are here: Home ? Blog ? first directory entry title

    It should read:

    You are here: Home ? sub category

    And when clicking to view an entry then it it should read:

    You are here: Home ? sub category ? entry

    We are using the yoast_breadcrumbs plugin. Any information would be very helpful..

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’m having the same issue with the Yoast breadcrumbs plugin.

    I got a custom post type called products.
    I’ve set the slug of this post type to products.

    At the moment the breadcrumb on product pages show up as:

    Home > Blog > Product page title

    I want it to say:

    Home > Products > Product page title

    Anyone got any ideas how to fix this?

    In your breadcrumb function, use the code next :

    $category = get_post_type_object(get_post_type())->label;

    I’m trying to do this too. Whereabouts do you put that code?

    I believe Yoast is working on the fix, but for now – did anyone ever find out where to place that above code? I’ve been searching & trying different things for days upon days & I’m about ready to just rip out the call for that page! HELP !! ??

    Use the development version of Breadcrumb NavXT – it works perfectly with custom post types.

    Anyone ever get Yoast to work with custom post types?

    @gotfers Great answer. Do you have any directions on where to put that line of code?
    I’m using WordPress SEO (by Yoast) version: 0.2.3.2 in which the breadcruns are not working in combination with custom post types. The name (category) of the custom post type is not shown.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom post types & breadcrumbs’ is closed to new replies.