XooCode(){

WPSideBar

WPSideBar is a direct WebPageElement subtype for a page's sidebar — secondary navigation, related links, inline ads, widgets. No unique properties.

Full example of schema.org/WPSideBar json-ld markup

The markup is verified as valid with Rich Results Test from Google.

schema.org/WPSideBar
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "WPSideBar",
  "name": "Related articles sidebar",
  "cssSelector": "aside.related"
}
</script>

Minimal valid version

The smallest markup that still produces a valid WPSideBar entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.

schema.org/WPSideBar (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "WPSideBar",
  "cssSelector": "aside"
}
</script>

Google rich results this unlocks

WPSideBar is a structural type. It does not produce a rich result on its own.

Its value comes from combining it with a primary type whose markup earns a rich result (Article, Product, Event, and so on). WPSideBar becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.

Common WPSideBar mistakes

Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.

  1. 01

    WPSideBar for WordPress-specific widgets

    Wrong
    Assuming WPSideBar is WordPress-only
    Right
    WP prefix historically stood for 'Web Page', not WordPress — the type is CMS-agnostic

    Common misconception; the type applies to any site's sidebar.

About the example data

The related-articles sidebar on Xoo Code blog posts.

Comments

Loading comments...

Leave a comment