I have a problem with Video SEO
You may run into problems when you use Video SEO. In this article, we explain some of the most common issues that can occur in Video SEO, and how you can solve them.
Why doesn’t the Video SEO plugin index all my videos?
If your website has many videos, the plugin can have problems finding them all due to a shortage of memory. Please check this Google support guide to troubleshoot errors related to video page indexing. You can also try re-indexing your videos. Once the number in the sitemap is static, it has found all the videos.
The plugin doesn’t recognize my YouTube video
First, you must add a custom field to your plugin settings. When using a custom field for your YouTube video, you probably only had to enter the variable YouTube uses to show your video. There is no way our plugin knows what this code means without extra information.
To solve this, you can add the following code to you functions.php (Theme file).
/* Takes the youtube video ID stored in a custom field
* and adds a full Youtube URL to the content to allow
* the video SEO plugin to index it.
* The video URL is added to the top of content to make
* it override other video's in the post.
* @param string $content the input content field.
* @param array $vid the video array for the post.
* @return string $content
*/
add_filter( 'wpseo_video_index_content', 'fix_content_input', 10, 2 );
function fix_content_input( $content, $vid ) {
$custom_field_name = 'video'; //Change to your needs
$youtube_id = get_post_meta( $vid['post_id'], $custom_field_name, true );
$content = "\n" . 'http://youtube.com/v/'. $youtube_id . "\n" . $content;
return $content;
}
The plugin doesn’t recognize my Vimeo video
First, you must add a custom field to your plugin settings. When using a custom field for your Vimeo video, you probably only had to enter the variable Vimeo uses to show your video. There is no way our plugin knows what this code means without extra information.
To solve this, you can add the following code to you functions.php (Theme file).
/* Takes the Vimeo video ID stored in a custom field and
* adds a full Vimeo URL to the content to allow
* the video SEO plugin to index it.
* The video URL is added to the top of content to make
* it override other video's in the post.
* @param string $content the input content field.
* @param array $vid the video array for the post.
* @return string $content
*/
add_filter( 'wpseo_video_index_content', 'fix_content_input', 10, 2 );
function fix_content_input( $content, $vid ) {
$custom_field_name = 'id_vimeo';
$video_id = get_post_meta( $vid['post_id'], $custom_field_name, true );
$content = "n" . 'http://vimeo.com/'. $video_id . "n" . $content;
return $content;
}
Why are my new videos on the bottom of my second sitemap?
Your videos are automatically added to the bottom of your second sitemap. When Google needs to fetch your sitemap again, it then only needs to fetch the latest video sitemap instead of all your video sitemaps. The last update time tells Google what’s new.
Why is my video not detected?
Are you seeing the error message shown below when you add a video to your content?
It looks like your content does not yet contain a video. Please add a video and save your draft in order for Video SEO to work.
Consult the solutions below to resolve this error.