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.
<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.
<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.
- 01
WPSideBar for WordPress-specific widgets
WrongAssuming WPSideBar is WordPress-onlyRightWP prefix historically stood for 'Web Page', not WordPress — the type is CMS-agnosticCommon misconception; the type applies to any site's sidebar.
Schema properties in this example
About the example data
The related-articles sidebar on Xoo Code blog posts.
Comments
Loading comments...