We are sorry to hear that you’re having trouble with the Yoast SEO-generated breadcrumbs schema markup. The issue you’re currently experiencing occurs when the relevant page has no name defined. If you have created the custom post type on your own, please make sure that you have used the proper name for the relevant archive page.
However, if you’d like to disable the Yoast SEO-generated schema markup on the relevant page entirely instead, you can find the relevant code given here: https://developer.yoast.com/features/schema/api/#to-disable-schema-entirely. You’ll need to modify the relevant code a bit to target the relevant archive page only.
Alternatively, if you’d like you can disable the breadcrumbs graph only on the relevant page instead of disabling the entire schema markup.
Can you elaborate more on the “proper name for the relevant archive page”? Is this a label I need to add to the labels attribute? I was able to disable the Breadcrumbs on just the Certification page, but I want to make sure my CPT is setup correctly in the first place.
We are also seeing the issue on 5 random Woocommerce products on another client site. These products all have “names” so I’m not sure what is happening here.
https://www.sncmfg.com/product/telecommunications/quiet-tel/noise-chokes-common-mode-transformers/
Thanks for following up with us. Can you please confirm whether the issue persists whenever adding the label with name property?
On the other hand, we have tested the relevant product page and were able to reproduce the issue on our end. It’s very odd as the relevant product page has a name on it. So, Yoast SEO should be able to detect the name and use it on the breadcrumbs schema markup.
The CPT already has the “name” property.
https://snipboard.io/Uk8KSB.jpg
What are we doing incorrectly?
Based on the second link I provided – you say Yoast SEO should detect it, is this a plugin bug?
Hello @pinksharpii!
Thanks for getting back to us.
1. Can you please confirm you are using the most recent version of Yoast SEO, v16.1.1?
2. Can you please make sure that your WordPress (5.7), theme, and ALL other plugins are updated?
3. If you use the Yoast Test Helper Tool, does the issue resolve? Please try the steps below:
i. Install & activate the Yoast Test Helper plugin: https://wordpress.org/plugins/yoast-test-helper/
ii. Go to Tools -> Yoast Test
iii. Locate the Yoast SEO section and select the “Reset indexables tables & migrations” button
iv. Click the “SEO Data” button in the SEO->Tools section.`
We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.
Installing the tester plugin did not help but I did figure it out. We don’t use a Shop page – that setting in Woocommerce is blank. If I set it to a random page, that error goes away in the Structured Data testing tool. Since a Shop page isn’t necessary, could you modify the plugin to not output that breadcrumb in that case?