Description
Batra Schema automatically generates Schema.org JSON-LD structured data for WordPress and WooCommerce, helping search engines better understand your website, content, and products.
It covers the organization, pages, articles, authors, products, categories, and custom catalogs. Activate it and the markup is already on the page. Values come from the site itself: titles, text, images, prices, stock, brands, categories, and custom terms.
Structured data
- Organization and WebSite entities, including the site search action.
- WebPage, CollectionPage, and SearchResultsPage where appropriate.
- BlogPosting for posts and Article for public custom post types.
- Person data on author archives.
- Thing data for categories, tags, WooCommerce taxonomies, and other public custom taxonomies, including term descriptions and term images when the site has them.
- Links from posts and custom post types to the taxonomy terms that classify them.
- BreadcrumbList with parent pages, parent terms, post type archives, and the shop page.
- ItemList for blog, search, author, date, post type, and taxonomy archives.
- Product structured data for WooCommerce product pages.
- Offer data for simple products.
- AggregateOffer with individual valid variation offers for variable products.
- Price, currency, stock availability, SKU, product gallery, category path, brand, and custom taxonomy properties when available.
Batra Schema does not send site data to an external service and has no required settings screen.
Compatibility
Batra Schema is an independent schema generator. If another plugin or theme also outputs Schema.org markup for the same page, duplicate entities may be produced. Site owners should use one primary schema provider for overlapping schema types.
Developers can disable all Batra Schema output with the batra_schema_enabled filter or modify the generated graph with batra_schema_graph and batra_schema_json_ld.
Additional filters:
batra_schema_article_typechanges BlogPosting or Article to another Article subtype.batra_schema_is_article_post_typeincludes or excludes a custom post type.batra_schema_term_typechanges the schema type of a custom taxonomy term.batra_schema_breadcrumb_taxonomieschooses which taxonomy supplies the breadcrumb path.batra_schema_brand_taxonomiesadds a custom brand taxonomy.batra_schema_term_image_idpoints a term at its image attachment.
Installation
- Install Batra Schema from the WordPress plugin directory or upload the plugin ZIP.
- Activate the plugin.
- No configuration is required for the default output.
- Test representative pages with a structured-data validator after activation, especially if another SEO or schema plugin is active.
FAQ
-
Does Batra Schema require an SEO plugin?
-
No. Batra Schema generates structured data independently and does not require an SEO or schema plugin.
-
Does Batra Schema require WooCommerce?
-
No. Core WordPress structured data works without WooCommerce. Product and Offer entities are generated only when WooCommerce is active and the current page is a WooCommerce product.
-
What happens if another plugin outputs schema?
-
Batra Schema does not silently delete markup generated by another plugin. If another plugin outputs overlapping entities, configure the site so one provider owns those schema types, or disable Batra Schema output with the provided filter.
-
Does it support custom post types and custom taxonomies?
-
Yes. Public custom post types get Article schema. Categories, tags, WooCommerce taxonomies, and other public custom taxonomies get collection pages, term data, hierarchical breadcrumbs, and links from the content they classify. A custom taxonomy can be given a more specific schema type with the
batra_schema_term_typefilter. -
Does the plugin invent ratings, reviews, GTINs, or other product data?
-
No. It only outputs supported values that are available from WordPress or WooCommerce. It does not fabricate rich-result properties.
-
Does it send data to Batra Group or another external service?
-
No.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Batra Schema” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Batra Schema” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.2.0
- Updated the plugin summary and Russian translation.
- Added a bundled Russian translation.
- Added Article schema for public custom post types. Posts remain BlogPosting.
- Added term entities, descriptions, and images for categories, tags, WooCommerce taxonomies, and custom taxonomies.
- Linked posts and custom post types to their public taxonomy terms.
- Added hierarchical breadcrumbs for pages, posts, products, custom post types, and taxonomy archives.
- Added Person schema for author archives.
- Added ItemList output for the blog home, search, author, date, and post type archives.
- Added product category paths, gallery images, brand links, and custom taxonomy properties on products.
- Added the site search action and page language.
- Stopped output in embeds and previews. Password-protected posts no longer expose their text.
1.1.1
- Added ItemList structured data for WooCommerce shop, product category, and product tag archives.
- Linked WooCommerce collection pages to their ItemList entity.
- Kept full Product and Offer structured data limited to individual product pages.
- Avoided incomplete Product entities in Batra Schema archive output.
1.1.0
- Rebuilt Batra Schema as an independent Schema.org JSON-LD generator.
- Removed the Rank Math dependency and Rank Math JSON-LD repair architecture.
- Added connected Organization, WebSite, WebPage, BlogPosting, BreadcrumbList, and WooCommerce Product entities.
- Added WooCommerce Offer and variable-product AggregateOffer generation from current product data.
- Added public filters for disabling or customizing generated schema.
- Rewrote plugin metadata and documentation to match the standalone architecture.
1.0.3
- Initial WordPress.org release focused on repairing missing WooCommerce Product Offer data in Rank Math JSON-LD.