• Resolved vickyweb

    (@vickyweb)


    I have a custom post type and custom taxonomy.
    I want to include the custom taxonomy in the custom post type single breadcrumb. I have gone to Yoast Search Appearance > Breadcrumbs > ‘Taxonomy to show in breadcrumbs for content types’ and have been able to select my custom taxonomy in the drop down against my custom post type. I have saved it, but it is still not displaying in the front end of the post type single?

    I tried changing to a default theme to check if it behaves the same way, but the breadcrumbs don’t appear in the standard twenty-twentyone or twenty-twenty themes.

    I have used Custom Post Types UI to create the post type and taxonomy. Everything in the custom taxonomy is True. the has archive in the post type is set to true. with front is set to true.

    Please can you advise what could be the problem here? Why it is ignoring this setting?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    This issue typically occurs when Yoast SEO has the breadcrumbs path in memory. To clear that, you’ll perform the steps given below:

    • Install and activate Yoast Test Helper plugin;
    • Go to Tools → Yoast Test → Yoast SEO → Reset indexables tables & migrations options to reset it;
    • Run SEO data optimization from the SEO → Tools page.

    Let us know whether the issue persists after performing the above steps.

    Thread Starter vickyweb

    (@vickyweb)

    Hello

    I tried that and it didn’t work at first, but then I noticed that my theme ‘Astra Pro’ was using its own breadcrumb, so I have now managed to tell it to use the Yoast one as the source, and it appears to be working ok now.

    Apologies…and thanks.

    Thread Starter vickyweb

    (@vickyweb)

    Do you know how I would include this same path in the permalink please?
    Or at least include the custom taxonomy in it?

    Currently its just website.co.uk/product/name, but ideally id like to include the Custom taxonomy name in here too somewhere?

    I tried editing the permalink structure to include /%category%/%postname%/ but that doesn’t seem to effect the custom post types…

    Plugin Support Maybellyne

    (@maybellyne)

    Hello,

    Though you can customize the permalinks to insert the taxonomy term in the post permalink by setting the permalink to %category%/%post_name%, this will not work with custom post types. It will work only for default posts.

    You may want to look at this article that provides some guidelines on how to hardcode this. Please note that we have not tested this and we recommend trying on a staging site first. https://wisdmlabs.com/blog/add-taxonomy-term-custom-post-permalinks-wordpress/

    Thread Starter vickyweb

    (@vickyweb)

    Thanks for this. Unfortunately this doesn’t work for me. Im not sure if I have the rewrite bit correct as I have to add that in the custom post type UI plugin not my functions.php.

    I will need to look for some other instructions to try, or perhaps will try removing the custom post type UI and do in code instead.

    Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘the ‘Taxonomy to show in breadcrumbs for content types’ doesn’t work’ is closed to new replies.