Video sitemap doesn’t work when I have Custom Post Type ‘Video’?

Last update: 06 March, 2018

Yoast SEO: Video will automatically detect a naming collision and change the video sitemap name. Please go to Admin > SEO > Video SEO and click the 'XML Video Sitemap' link to get the correct sitemap URL. If you prefer to give your video sitemap a custom name, please use the developer filter discussed below.


How to Change the Video Sitemap URL

This guide is written for advanced users and developers. Looking for a web developer to customize our plugin? We highly recommend checking out Code Poet as they have a great list of available freelance WordPress developers.
Disable all sitemaps by unchecking the sitemap box shown in this article.
Add the following to your functions.php file.

define ('YOAST_VIDEO_SITEMAP_BASENAME', 'vsvideo');
Enable all sitemaps by following the steps in this article.

This will create two sitemaps; one for the video custom post type and one specifically formatted to meet video sitemap guidelines.

Video Post Type =
Video Format =

Was this article helpful? ·