• I recently installed the Video Thumbnails plugin and it has yet to find a thumbnail on any of the sites posts. The site is using the Videozoom theme and allows for featured images. The videos that are being embedded are from YouTube and the rest are self hosted videos using JW Player.

    Any ideas of what could be going wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter JonathanT07

    (@jonathant07)

    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

    Thread Starter JonathanT07

    (@jonathant07)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin: Video Thumbnails never finds thumbnails’ is closed to new replies.