• Resolved egurock

    (@egurock)


    I uploaded a whole bunch of videos to youtube and they all have thumbnails created. But when I run the Video Thumbnail plugin, it doesn’t find any of them. I’m using a theme that stores the youtube video in a custom field, could that be the problem? If so, does anyone have a solution?

    thanks!

Viewing 9 replies - 16 through 24 (of 24 total)
  • flint_and_tinder

    (@flint_and_tinder)

    [email protected]

    (@finjoelgmailcom)

    Hi there,

    I have been trying to install the Video Thumbnail plugin on my WordPress blog mycrowdfundingstudy.com and I have not been able to successfully implement it.

    I am not sure if it an issue with the theme I selected or what, but I am not able to make the Vimeo videos posted show up as a thumbnail on the main page. I also uploaded the same video to WordPress, and there are no options in the Media dashboard to preview a thumbnail of this video.

    I went through the forum and the information on the main page, and have tried adding some of this code to the plugin, without success. I am not savvy enough to code my own PHP, so any help would be appreciated.

    Regards,

    Joel

    walser

    (@walser)

    Hi
    I’m trying to get this work with embedded vimeo videos (iframe embed) and custom field (called ’embed’). I changed the “// Gets the post’s content” part as described above and changed $video_key = ‘video’ to $video_key = ’embed’; However, so far without success. Any ideas what else I need to do in order to get this work?
    Thanks
    Ingo

    I tried the following code below for getting thumbnails from custom fields and it worked great with one exception. In WordPress 3.3 it doesn’t create the thumbnail while the post is being published but instead after I have to click the search link in the Video Thumbnails box and then it creates the thumbnail. How do I make it create the thumbnail from a custom field while the post is being published?

    // Gets the post's content
    $video_key = 'video';
    $markup = get_post_meta($post_id, $video_key, true);
    $new_thumbnail = null;

    Same here. This work with custom field but only if click Seach Again. Its not working when its published

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    @Chozen @bazel it sounds like maybe the custom fields aren’t being saved until after the Video Thumbnail action. Try changing

    add_action('new_to_publish', 'save_video_thumbnail', 10, 1);
    add_action('draft_to_publish', 'save_video_thumbnail', 10, 1);
    add_action('pending_to_publish', 'save_video_thumbnail', 10, 1);
    add_action('future_to_publish', 'save_video_thumbnail', 10, 1);

    in the plugin file to

    add_action('new_to_publish', 'save_video_thumbnail', 20, 1);
    add_action('draft_to_publish', 'save_video_thumbnail', 20, 1);
    add_action('pending_to_publish', 'save_video_thumbnail', 20, 1);
    add_action('future_to_publish', 'save_video_thumbnail', 20, 1);

    and let me know if this fixes the problem for you. I’m going to try to include official custom field support in an upcoming version, and I’ll include this change if it fixes your problem.

    Nope, still no luck but here’s what I’ve discovered, when you save the post then publish it, the thumbnail gets created. But that’s no different from searching for the post after the post has been published.

    It’s still a extra step, and since my site is a multi author site, it going to be difficult trying to get everyone to remember to save before publishing.

    @sutherland Boswell, you should consider making the custom field feature a native option for the next update of the plugin. That would be a very useful addition.

    Sorry I didn’t see that you said you were gonna support custom fields in the next release.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘[Plugin: Video Thumbnails] Can't Find YouTube Thumbnails’ is closed to new replies.