Problem
After changing the slug of a custom post type, the Yoast SEO breadcrumbs still link to the old URL of the post type archive page.
Solution
I found this solution suggested by the plugin support and it worked for me.
We will need to update the URLs used by Yoast SEO breadcrumbs.
Here are the steps:
- Install and activate the Yoast Test Helper plugin.
- In the WordPress admin panel, go to “Tools” » “Yoast Test”.
- Click the
Reset Indexables tables & migrations
button. - Go to “SEO” » “Tools”.
- Click the
Start SEO data optimization
button. - Check the URLs in the breadcrumbs again - they should now be correct.
- (Optional) Disable the “Yoast Test Helper” plugin.