The problem
You embed a YouTube video in a blog post. Months later, you open Search Console's Video indexing report — and the video is sitting under "Not indexed" with the reason "Video is not the main content of the page".
This is the single most common Video SEO failure on WordPress, and it has two roots:
- Yoast SEO does not generate a
video-sitemap.xml. Without it, Google has to discover the video through on-page heuristics — fine for a video-first site, useless for a blog where every post is mostly text with a video embedded somewhere in the middle. - Even when Google finds the video, it weighs it against the page. On a 1,500-word post, Google decides the text is the main content and the embedded video is decorative. The page won't appear in the video carousel, and Search Console flags it accordingly.
The plugin attacks both halves at once:
- It generates
video-sitemap.xmland adds it to/sitemap_index.xmlthrough Yoast's own sitemap filters, so it sits next topost-sitemap.xmlandpage-sitemap.xml. Each<video:video>entry carries the fields Google's video crawler actually reads -thumbnail_loc,duration,content_loc,player_loc,publication_date, channel info from the YouTube Data API. - For every discovered video it serves a virtual watch page at
/video-watch-page/?video_id=…where the embedded video is the only meaningful content on the page. In the sitemap, the<url>entry stays on the host post, and for YouTube and Vimeo thecontent_locof each<video:video>points at the watch page. The original blog post stays indexed for text search - separately, on its own URL.
Net effect: instead of one URL that Google can't decide what to do with, you ship two — a text page that ranks for text queries, and a watch page that ranks for video queries.
What it does today
It finds the videos. Post content is scanned for YouTube and Vimeo oEmbed URLs and plain links, the [yv_video] shortcode, raw <video> and <source> tags, and ACF fields of type oembed, url, text and file. Every common YouTube URL form counts: watch?v=, youtu.be/, embed/, Shorts (/shorts/), /live/, m.youtube.com and youtube-nocookie.com. Several videos on one line - two iframes back to back - are all found, not just the first, and an embed/videoseries playlist no longer turns into a phantom video. Local media discovery is opt-in. Whatever the source, a detected video becomes one value object carrying the fields the sitemap needs, so a third hosted provider is a new adapter rather than another branch in the detector.
It fills in what the embed does not tell you. With a YouTube Data API key you get title, description, thumbnail, duration, uploader and publication date — the fields Google's video crawler actually reads. Vimeo goes through the public API. Both providers cache the metadata per video in a transient for a day, so a sitemap rebuild does not re-fetch every video. A per-post metabox covers the rest: duration fallback, rating, view count, and a live-broadcast flag.
It publishes a real video sitemap. /video-sitemap.xml is wired into Yoast through three filters: wpseo_sitemap_index adds it to /sitemap_index.xml alongside post-sitemap.xml, wpseo_do_sitemap_video answers the request for it, and wpseo_sitemap_video_content fills in the <url> entries. Google finds it in the index Yoast already serves rather than somewhere it has to be told about separately.
It gives each video a page of its own. The virtual watch page carries one video and nothing to compete with it, in three forms: ?video_id=… for YouTube, &type=vimeo for Vimeo and &type=local for a file from the media library, each with its own player. The page <title> and og:title come from the video's title. The robots directive is forced to index through wpseo_robots, even when another plugin asks for noindex, and wpseo_opengraph_url points the OpenGraph URL at the watch page itself.
VideoObject and WatchAction nodes are injected into Yoast's own schema graph through wpseo_schema_graph, so there is one graph on the page rather than two scripts contradicting each other. A one-click re-index tool in settings rebuilds detection across the library.
Build details
- WordPress 6.0+, PHP 8.0+, hard dependency on Yoast SEO (
wordpress-seo): activated without it, the plugin deactivates itself - PSR-4 under
AlexTur\YoastVideoSeoBooster\ - Hosted-video metadata sits behind a
VideoMetadataProviderinterface with YouTube and Vimeo adapters - Five
_yvsb_*post meta keys, all reached through oneVideoPostMetaaccessor - A
yvsb_video_sitemap_item_propertiesfilter for third parties adding their own<video:*>properties - Self-hosted updates via Plugin Update Checker v5
Known gap
The watch page does not print a <link rel="canonical"> yet. To WordPress it is a virtual page with no post behind it, which WordPress treats as a 404, and in that state Yoast does not output a canonical at all - so the plugin's wpseo_canonical filter never gets to run. The robots index, follow directive and the OpenGraph tags on the watch page do work. A fix is in progress.
Where it stands
Shipped and stable at v3.1.1. Version 3.1.1 changed only how updates are delivered: the archive now comes through alexturik.com, so updates no longer need a token, and the sitemap, watch page and JSON-LD code is the same as in 3.1.0. Reindex after updating to 3.1.0: open Settings → Video SEO Booster and click Start video re-indexing. The plugin now recognises more videos (Shorts, /live/, two iframes on one line), but a post whose only videos were missed before reaches video-sitemap.xml only after the reindex marks it as having a video. The JSON-LD on the post itself appears straight away.
The full case study - in particular how the watch page works around being a virtual page that WordPress sees as a 404 - is not written yet.
Install
- Install and activate Yoast SEO first - this plugin does not run without it.
- Download the zip from the button at the top of this page.
- In
wp-admin → Plugins → Add New → Upload Plugin, choose the zip and click Install Now, then activate. - Open Settings → Video SEO Booster, enter your YouTube Data API key (optional, but it fills in title, duration and channel), choose the post types to scan, and save.
- If the site already has posts with videos, click Start video re-indexing on the same page.
New versions show up in the usual wp-admin → Plugins screen without a token: leave the Update access token field on the settings page empty.
FAQ
Why doesn't Google index videos embedded in WordPress blog posts by default?
Two reasons. First, Yoast SEO doesn't generate a video sitemap — Google has to discover videos via on-page heuristics. Second, on a long blog post, Google decides the surrounding text is the main content and the embedded video is decorative, so the video lands in Search Console under "Video is not the main content of the page". This plugin fixes both: a proper video sitemap and a dedicated watch page where the video is the only content.
Does this plugin replace Yoast SEO?
No - it requires Yoast SEO to be active. It plugs into Yoast through filters: wpseo_sitemap_index, wpseo_do_sitemap_video and wpseo_sitemap_video_content for the video sitemap, wpseo_schema_graph for the VideoObject JSON-LD, and wpseo_robots and wpseo_opengraph_url for the watch page.
How are videos discovered?
The plugin scans post content for YouTube/Vimeo oEmbed URLs and direct links, the [yv_video] shortcode, raw <video> and <source> tags, and ACF fields of type oembed/url/text/file. Local-video discovery is opt-in.
Do I need a YouTube Data API key?
It's optional but recommended. With a key, video-sitemap.xml includes title, description, thumbnail, duration, channel name, and publish date — all fields Google uses to rank video results.
How many API calls does a sitemap rebuild cost?
Both YouTube and Vimeo metadata are cached as a transient per video for a day, so a rebuild within that day reuses the cached metadata instead of calling the API again. Only the first pass, and the first rebuild after the cache expires, fetch each video.
Do I need to do anything after updating to 3.1.0?
Yes - run Start video re-indexing under Settings → Video SEO Booster once. Posts whose only videos are forms 3.1.0 newly recognises, such as Shorts, are added to video-sitemap.xml only after that reindex.