WP Manifestindependent plugin directory
manifest / seo / wp-core-breadcrumbs-jsonld

Core Breadcrumbs JSON-LD

Adds BreadcrumbList JSON-LD structured data for the WordPress core Breadcrumbs block.

by Pixelium · github.com/pixeliumjp/wp-core-breadcrumbs-jsonld · website

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/pixeliumjp/wp-core-breadcrumbs-jsonld/archive/refs/heads/main.zip

Adds BreadcrumbList JSON-LD structured data for the WordPress core Breadcrumbs block.

Description

Core Breadcrumbs JSON-LD adds Schema.org BreadcrumbList structured data for sites using the WordPress core Breadcrumbs block.

The plugin reads breadcrumb items from the core block_core_breadcrumbs_items filter and outputs JSON-LD in the document head. It is intentionally lightweight and does not add settings screens, database tables, or front-end assets.

Features:

  • Outputs Schema.org BreadcrumbList JSON-LD.
  • Uses breadcrumb data from the WordPress core Breadcrumbs block.
  • Places JSON-LD in the document head.
  • Removes duplicate breadcrumb lists from repeated block renders.
  • Outputs a single object for one breadcrumb list.
  • Outputs multiple breadcrumb lists with @graph.
  • Completes the terminal breadcrumb item URL with the current page URL when needed.
  • Strips HTML tags from labels and decodes HTML entities.

This plugin is designed for WordPress 7.0 and later, where the core Breadcrumbs block and its item filter are available.

Installation

  1. Upload the core-breadcrumbs-jsonld folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Add or use the core Breadcrumbs block in your theme or content.

No settings are required.

Frequently Asked Questions

Does this plugin create visible breadcrumbs?

No. It only adds JSON-LD structured data for breadcrumbs generated by the WordPress core Breadcrumbs block.

Where is the JSON-LD printed?

The final JSON-LD script is placed in the document head.

What happens if the same breadcrumbs are rendered more than once?

Duplicate BreadcrumbList data is removed before output.

Does this work before WordPress 7.0?

No. The plugin requires WordPress 7.0 or later. On older versions, it shows an admin notice.

Changelog

1.0.0

  • Initial release.