Title: Breadcrumb schema bug
Last modified: November 10, 2021

---

# Breadcrumb schema bug

 *  Resolved [mdotk](https://wordpress.org/support/users/mdotk/)
 * (@mdotk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/breadcrumb-schema-bug/)
 * I was getting this error from Yoast generated schema: [https://i.imgur.com/G61ptoC.png](https://i.imgur.com/G61ptoC.png)
 * It is the same error this user was concerned with: [https://wordpress.org/support/topic/filter-to-disable-yoast-breadcrumb-schema-output-not-working-properly/](https://wordpress.org/support/topic/filter-to-disable-yoast-breadcrumb-schema-output-not-working-properly/)
 * That thread references a git thread: [https://github.com/Yoast/wordpress-seo/issues/16711](https://github.com/Yoast/wordpress-seo/issues/16711)
   which was closed.
 * Why it was closed I am not sure given that the error persists today (the screenshot
   was taken 5 minutes ago).
 * However, the code the person posted in there does seem to fix it:
 *     ```
       add_filter( 'wpseo_schema_webpage', 'remove_breadcrumb_schema_ref', 10, 1);
   
       function remove_breadcrumb_schema_ref( $piece ){
       	unset( $piece['breadcrumb'] );
       	return $piece;
       }
       ```
   
 * So just letting you know there is still a bug of some sort in your plugin.

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

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/breadcrumb-schema-bug/#post-15054348)
 * Hello Mdotk,
 * Thanks for reaching out regarding the breadcrumb schema.
 * The issue reported by the user you referenced is that the filter removes only
   some of the breadcrumbs schema. Someone from our development team provided feedback
   before closing the issue as it is not _an issue_.
 * The filter works correctly by removing the breadcrumb piece from the schema output
   but it does not remove the reference to the breadcrumb. And a snippet was also
   provided to remove that.
 * As a general rule, filters are supposed to be tweaked or adapted depending on
   your site. We are glad the other snippet resolved it for you.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/breadcrumb-schema-bug/#post-15078235)
 * 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 2 replies - 1 through 2 (of 2 total)

The topic ‘Breadcrumb schema bug’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/breadcrumb-schema-bug/#post-15078235)
 * Status: resolved