I am trying to have all my posts with post_format set as video, have said video as the featured image. Here is what I am working with thus far but I need some help:
if($post_format == 'video') {
if(get_post_meta($post->ID, 'video_site_url', true)) the_post_thumbnail($post->ID, 'video_site_url');
echo '<div class="video-containers single_item">'.wp_oembed_get(get_post_meta($post->ID, 'video_site_url', true)).'</div>';
}
Right now I'm using a YouTube's iframe to embed the video into my post and that seems to be working quite well.