• Resolved MonMansItaly

    (@monmansitaly)


    When I change the category of any post, breadcrumbs still show the old category. How can I update it?

    I’m implementing breadcrumbs via your PHP code:

    <?php
    if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ );
    }
    ?>

    I have already tried with Yoast Test Helper optimizations with no solution. The category that is shown by the theme is correct, in your breadcrumbs I see the first category i published the post with, changing it will nowt affet the change in the breadcrumbs.

    Versions
    – WordPress 5.6.1
    – Yoast 15.8.

    Thanks so much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter MonMansItaly

    (@monmansitaly)

    I think I managed it.

    The breadcrumbs are updated only if I insert the article first in another category (which has a main category different from the current one) and then insert it back into the right one. This is an abnormal behavior of the Yoast plugin.

    Hi @monmansitaly,

    Thank you for the update. To see the latest changes to the breadcrumb path, does clearing your cache from caching plugins, the server, a CDN like Cloudflare, or the browser resolve the issue?

    If you are not sure how to clear the cache from a plugin, please contact the plugin author. If you’d like to clear the cache from the server, please speak to your host provider. To clear the cache from a browser, use this guide: How to clear your browser’s cache.

    Also, when you change the categories, Yoast SEO may need to update its data. If you go to SEO > Tools, does the SEO data optimization show as completed? If not, please click the button to run the process.

    Thread Starter MonMansItaly

    (@monmansitaly)

    Thanks for your reply.

    I don’t use a CDN, plus I don’t have any server or plugin cache when logged in. I tried to delete all navigation data (browser cache too) without finding the solution.

    When I cange the category, in Yoast Tools I always see: “SEO data optimization complete” and I can’t press the button because there is none at the moment.

    Do you have any other investigation ideas?

    Thanks for bringing this to our attention. Based on the information you provided, we think it’s a bug. So, we’d appreciate it if you can submit a proper bug report directly at our GitHub development repository with a step by step guide to reproducing the issue so that our development team can investigate the issue further.

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Breadcrumbs with wrong category when change in WP’ is closed to new replies.