WordPress.org

Ready to get started?Download WordPress

Forums

Automatic Youtube Video Posts Plugin
[resolved] How do you get video thumnails to display in the post (2 posts)

  1. contactzero
    Member
    Posted 2 years ago #

    How do you get video thumnails to display in the post loop?
    I can only get the actual videos todisplay.
    I have tried installing the Video Thumnails plugin butthat does not work either
    Please help - I have spent hours on this
    Thanks in advance

    http://wordpress.org/extend/plugins/automatic-youtube-video-posts/

  2. contactzero
    Member
    Posted 2 years ago #

    Ok i have finally worked out my own answer if anyone else has this problem, and searching around lots of people do. I found the solution in a reply to someone elses problem fro the creator of Video Thumbnails plugin so thanks to them for this fix!

    In Video Thumbnails Plugin editor do this:

    Automatic Youtube Video Posts only stores the YouTube video's ID instead of an embed code or URL,
    which means the plugin doesn't know it's from YouTube. You'll have to change the line
    $markup = get_post_meta( $post_id, $video_key, true );
    to
    $markup = 'http://youtube.com/watch?v=' . get_post_meta( $post_id, $video_key, true );
    and set the custom field value to _tern_wp_youtube_video.

    And thats it - it works!!!

    See my ExtraHotMovies.com site for an example.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic