The SmartVideo plugin for WordPress can add VideoObject structured data (JSON-LD) to a page that has a video. Search engines read it to learn what the video is, where it lives and which image represents it. It is a signal, not a promise: whether Google shows a video result is Google’s decision.
The plugin has added basic video schema since version 2.2.0, and version 2.3.0 began filling in the description, thumbnail, duration, page URL and publisher from your content. It is on by default, and it does not cover videos from your SmartVideo Library (see below).
Which videos get schema
The plugin writes schema for a video when both of these are true:
- The video was added with SmartVideo’s WordPress tools: the SmartVideo block, the
[smartvideo]shortcode, the SmartVideo Widget in a sidebar or other widget area, or the SmartVideo module in Elementor, Divi (4 and 5), Beaver Builder or Bricks. - Its source is a normal web URL, such as a YouTube link, a Vimeo link, a file in your WordPress Media Library, or a file link from another host.
SmartVideo Library videos are left out. A Library video’s source is a swarmify:// reference that only the SmartVideo player can resolve, so the plugin has no file URL to publish and skips it. If a page has only Library videos, the plugin adds no schema to it. If the page mixes Library videos with other sources, only the other videos get schema. See SmartVideo library for how Library sources work.
Schema is added on single posts, pages and other single-entry pages, such as a lesson or product page. It is not added on archive, category or blog-index pages. If the same video appears twice on a page, it is listed once.
What the plugin outputs
For each covered video, the plugin fills in these fields from content you already have:
| Field | Where it comes from |
|---|---|
contentUrl |
The video’s source URL |
name |
The page’s browser-tab (SEO) title |
uploadDate |
The date the post or page was published |
description |
The first of these that has text: the post excerpt; the description from an SEO plugin such as Yoast SEO, Rank Math, All in One SEO or SEOPress; the post content. If none has text, Video on followed by your site name. Whatever the source, the description is trimmed to 30 words. |
thumbnailUrl |
The first of these that exists: the video’s poster image; the post’s featured image; the YouTube or Vimeo thumbnail; your site icon |
url |
The page’s permalink |
duration |
Only for videos stored in your WordPress Media Library, and only when WordPress has recorded their length |
publisher |
Your site name, plus your theme’s custom logo or your site icon |
The markup is a <script type="application/ld+json"> block written into the footer of the page, not the head. When a page has several covered videos, they share one block.
Turn schema off or on
- Open SmartVideo in your WordPress admin sidebar and select the Settings tab.
- In the Advanced section, find Video schema markup and switch Schema markup on or off. Settings save automatically.
Turn it off if an SEO plugin or your theme already writes VideoObject markup for the same videos and you’d rather not have two copies.
Check your schema
- Open the page on your site, view the page source and search for
application/ld+json. You should see a block with"@type":"VideoObject"near the end of the page. - Paste the page URL into Google’s Rich Results Test and look for Video among the detected items.
If nothing appears, check these in order:
- The page is a single post, page or other single-entry page, and the video was added with a SmartVideo block, shortcode, widget or module.
- The video isn’t a SmartVideo Library video.
- Video schema markup is on in Settings.
- A caching or optimization plugin isn’t serving an older copy of the page. Clear its cache and test again.
If you still need help, please open a support ticket.