• Resolved Andreas 2013

    (@andreas-2013)


    Hello,

    I have a custom post type “person” and a hierarchical custom taxonomy “birthplace”.
    Each person has a term for the country and the town.

    I’m working now on creating the breadcrumbs. The settings look like this:
    person -> birthplace
    Content type archive to show in breadcrumbs for taxonomies:
    birthplace -> person

    My URL looks like this: example.de/birthplace/australia/sydney.
    The breadcrumbs-path should look like this: Home -> birthplace -> australia -> sydney.
    But instead of “birthplace” the custom post type “person” is shown:
    Home -> person-> australia -> sydney.

    What does this mean? I noticed, that I can’t call the base slug for the custom taxonomy example.de/birthplace/ itself, I get an 404 error.

    What does this mean?

    Thank you in advance for your help!

    Andreas

Viewing 7 replies - 1 through 7 (of 7 total)
  • gorfeas

    (@gorfeas)

    Same problem here, I get the correct URL but wrong breadcrumb trail for custom taxonomies. Staging website, check it out here:
    URL https://wordpress-672479-2982721.cloudwaysapps.com/scale/1_144/
    breadcrumbs Home / 1/144

    Please help us!

    Plugin Support Maybellyne

    (@maybellyne)

    Hello @andreas-2013

    Thanks for reaching out about your breadcrumbs.

    Please check the breadcrumbs setting to confirm if the setting for the specific content type is selected as None. You can see that in WordPress > Yoast SEO > Search Appearance > Breadcrumbs. You can also share a screenshot using any image-sharing service like https://pasteboard.co/, https://snag.gy/, https://imgur.com/, https://snipboard.io/, or even upload the screenshot to your website. Once you upload it to an image-sharing service, please share the link to the image here.

    Thread Starter Andreas 2013

    (@andreas-2013)

    Hi Maybellyne,

    please see attached screenshots:

    Results, if I set “birthplace” to “Promi” (CPT)
    https://snipboard.io/0BbHpD.jpg
    https://snipboard.io/tZC8Tj.jpg

    Results, if I set “birthplace” to “None”
    https://snipboard.io/vyPJqe.jpg
    https://snipboard.io/QidG9I.jpg

    As I said, the base slug “birthplace” (in german “geburtsort”) is missing, it should look like: Home -> birthplace -> australia -> sydney
    I repeat my question: would it be possible generally to call example.de/birthplace/, if “birthplace” is the custom taxonomy?

    Plugin Support Maybellyne

    (@maybellyne)

    Hello @andreas-2013

    Thanks for the screenshots.
    To answer your question, you should be able to call example.de/birthplace/ since Birthplace is the custom taxonomy.

    For the custom post type (CPT), Person, you can set the breadcrumbs pathway output in WordPress > Yoast SEO > Search Appearance > Content Types > Person. You can enable or disable the archives page for the CPT itself and modify the breadcrumb title.

    For the custom taxonomy, Birthplace, that you’ve assigned to the CPT, Person, you can modify the ‘taxonomy to show in breadcrumbs for content types’ (WordPress > Yoast SEO > Search Appearance > Breadcrumbs tab) to show that custom taxonomy instead of the default CPT archive as the breadcrumb pathway.

    Thread Starter Andreas 2013

    (@andreas-2013)

    Hi Maybellyne,

    sorry for the late reply, but I had problems reinstalling the yoast plugin.

    I tested all possibilities, but calling example.de/birthplace/ doesn’t work. To be sure I tested out with a standard wordpress theme and new CTP and custom taxonomy. When I call the new created taxonomy directly, I always get the archive of the CPT! I think, that’s the reason for the non working breadcrumbs path. But if you have already tried this procedure yourself, I would be happy if you would describe the procedure to me in detail.

    I also tried to modify the breadcrumbs settings, as you said, but without results. By the way, I don’t have just one custom taxonomy, I have many.

    In the meanwhile I had a conversation with the developer of the Flexy Breadcrumb Plugin. It’s interesting, what he said:

    “By default, in the breadcrumb trail default mechanism is for Custom Post Type, not the custom taxonomy. You have to set your custom taxonomy template in your theme/plugin then you can access the custom taxonomy page via URL. This practice is followed in all breadcrumbs plugins, you can install any of the Breadcrumb plugins from the WordPress repository and test it with your scenario, you will only get the option to show/hide custom post type. (No option or trail for custom taxonomy).
    The reason for preferring a trial of the custom post type is each custom taxonomy needs a template that is defined by theme/plugin. So it is your custom requirement not a bug in Flexy Breadcrumb and can be done at your theme level and then customization in Breadcrumb plugin that you will use.”

    What do you think about that, is he right? And if so, do you have an idea how to make the taxonomy name appear in the Yoast breadcrumbs?

    Plugin Support Maybellyne

    (@maybellyne)

    @andreas-2013 Thanks for the detailed clarification; I must have mixed things up earlier. The CPT has to be included in the breadcrumbs path; it can’t be omitted. Here’s what I was able to achieve while testing:

    Home | CPT | Taxonomy | Post

    However, you or your developer can customize the plugin to suit your specific usecase.

    Thanks.

    Thread Starter Andreas 2013

    (@andreas-2013)

    Hi Maybellyne,

    I solved the problem with the help of the plugin “Breadcrumb NavXT”. The plugin offers the possibility to set a static breadcrumb item.

    Thank you for your patience!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Breadcrumbs-Item for custom taxonomy missing’ is closed to new replies.