Video SEO for WordPress by Yoast

Front page Forums CodeCanyon products WordPress YouTube video post plugin Video SEO for WordPress by Yoast

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #259


    Is your plugin compatible with the Video SEO for WordPress by Yoast?

    i.e. Have this been tested


    No, sorry. What exactly isn’t working or what are you trying to do?


    Yoast Video SEO allows for ones posts to show in Google with the video and the duration etc. I think its called the Video Schema etc. Also it creates a video xml sitemap which you can then submit to google.


    Unfortunately the plugin is a paid plugin and I can’t test to see how to make it compatible. Technically, it caqn be made compatible by using the built in filters and actions to automatically set the custom fields with the information needed. For example, for this plugin: the code code should be placed in WP theme functions.php file and will automatically add the custom fields for all new videos:

     * Enter Ultimate SEO fields for currently create post
     * @param int $post_id
     * @param array $video
     * @param array $theme_import
    function cbc_ultimate_seo_fields( $post_id, $video, $theme_import ){
    	if( !$theme_import ){
    	$ultimate_seo_fields = array(
    		'thumbloc' 		=> $video['thumbnails'][0],
    		'thumbtitle' 	=> $video['title'],
    		'thumbdesc' 	=> $video['description'],
    		'thumbdate' 	=> $video['stats']['rating'],
    		'thumbplayer' 	=> ''.$video['video_id'],
    		'thumbduration' => $video['duration']		
    	foreach( $ultimate_seo_fields as $field => $value ){
    		update_post_meta( $post_id, $field, $value );
    add_action('cbc_post_insert', 'cbc_ultimate_seo_fields', 10, 3);
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.