It looks like Videozoom uses a custom field to store the embed code, and the plugin only searches the body of the post by default.
The solution is to open the plugin in the editor and find this
// Gets the post's content
$post_array = get_post($post_id);
$markup = $post_array->post_content;
$markup = apply_filters('the_content',$markup);
$new_thumbnail = null;
and replace it with
// Gets the post's content
$video_key = 'video';
$markup = get_post_meta($post_id, $video_key, true);
$new_thumbnail = null;
You’ll have to change the value of $video_key = ‘video‘ to the name of the custom field Videozoom uses, but since it’s a premium theme I have no idea what they’ve named it.
Hi Sutherland,
Thanks for the reply.
In the theme posts page there is a column on the right hand side that’s called Post Video Embed. There’s a text box that allows you to paste the embedded video code.
Should this be the code
// Gets the post's content
$video_key = 'Post Video Embed';
$markup = get_post_meta($post_id, $video_key, true);
$new_thumbnail = null;
Also for the JW Player videos they are embedded directly into the post in the following format. It does not use the Post Embed custom field.
[jwplayer config="Custom Player" mediaid="83"]
Any suggestions on the JW Player issue?
Thanks again for your help
Jonathan
Hi Again,
So I got it working for youtube videos.
FYI for the Videozoom its…
// Gets the post's content
$video_key = 'wpzoom_post_embed_code';
$markup = get_post_meta($post_id, $video_key, true);
$new_thumbnail = null;
If there’s anyway you can help with with the JW Player it would be greatly appreciated!
Thanks again,
Jonathan