I have searched and searched but can’t figure out how to do this one…
I have a custom post type with custom fields set-up for
- video ID (Text field), where only the numerical video ID is being input
(Name: video_url) - video embed (oEmbed field), where the whole URL is being input
(Name: video_embed)
I have a php template file where I’m trying to add code display the custom post title and link, and then the video thumbnail image (instead of the full playable embed). Oembed response fields includes thumbnail_url , I just don’t know how to code properly to pull just the thumbnail and not the full embedded video… thanks for any help!
<div class="col-xs-6 col-sm-4 video-block">
<a href="<?php the_permalink(); ?>">
<div class="video-wrapper">
<?php echo get_field('video_embed'); ?>
</div>
</a>
<?php the_title(); ?>
</div>