Front page › Forums › CodeCanyon products › WordPress YouTube video post plugin › Video SEO for WordPress by Yoast
- This topic has 3 replies, 2 voices, and was last updated 8 years, 5 months ago by
Constantin.
-
AuthorPosts
-
November 24, 2013 at 10:36 AM #259
mcm
ParticipantHi
Is your plugin compatible with the Video SEO for WordPress by Yoast?
i.e. Have this been tested
November 28, 2013 at 10:12 AM #260Constantin
KeymasterNo, sorry. What exactly isn’t working or what are you trying to do?
November 28, 2013 at 10:14 AM #261mcm
ParticipantYoast 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.
December 20, 2013 at 7:54 PM #272Constantin
KeymasterUnfortunately 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);
-
AuthorPosts
- You must be logged in to reply to this topic.