Video SEO for WordPress by Yoast

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

This topic contains 3 replies, has 2 voices, and was last updated by  Constantin 3 years, 10 months ago.

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

    mcm
    Participant

    Hi

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

    i.e. Have this been tested

    #260

    Constantin
    Keymaster

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

    #261

    mcm
    Participant

    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.

    #272

    Constantin
    Keymaster

    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: http://codecanyon.net/item/ultimate-video-seo-plugin/5582148 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 ){
    		return;
    	}	
    	
    	$ultimate_seo_fields = array(
    		'thumbloc' 		=> $video['thumbnails'][0],
    		'thumbtitle' 	=> $video['title'],
    		'thumbdesc' 	=> $video['description'],
    		'thumbdate' 	=> $video['stats']['rating'],
    		'thumbplayer' 	=> 'http://www.youtube.com/watch?v='.$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.