Lightweight Video Sitemap for WordPress
Zero-bloat video sitemap generator for WordPress (/video-sitemap.xml).
by Justin Hess - Real Time Lead Gen · github.com/realtimeleadgen/lightweight-video-sitemap · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/realtimeleadgen/lightweight-video-sitemap/archive/refs/heads/main.zipA zero-bloat plugin that generates a dedicated video sitemap at /video-sitemap.xml for posts and pages that contain embedded or self-hosted videos.
Works alongside your existing XML sitemap plugin. No settings pages, no tracking, no “powered by” links.
Features
- Detects:
- YouTube embeds (watch URLs, short links, iframe embeds)
- Vimeo embeds
- HTML5
<video>tags - Direct
.mp4,.webm,.oggURLs
- Outputs a valid video sitemap at
/video-sitemap.xml - Uses featured images as thumbnails when needed
- Sanitizes titles/descriptions for XML (no broken entities)
- Filter hooks for custom post types and custom video fields
Installation
- Download or clone this repository.
- Create a folder named
lightweight-video-sitemapinwp-content/plugins/. - Upload the files into that folder.
- In your WordPress admin, go to Plugins → Installed Plugins and activate Lightweight Video Sitemap for WordPress.
- Visit Settings → Permalinks and click Save Changes once to refresh rewrite rules.
- Open
https://yourdomain.com/video-sitemap.xmlto confirm the sitemap is generated. - Submit that URL in Google Search Console → Sitemaps.
Usage
- Keep your existing main XML sitemap plugin active.
- This plugin adds an additional sitemap specifically for videos:
https://yourdomain.com/video-sitemap.xml
Customization
Include custom post types:
add_filter( 'lvs_post_types', function( $types ) {
$types[] = 'my_custom_post_type';
return $types;
} );