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
- video embed (oEmbed field), where the whole URL is being input
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!
<?php echo get_field('video_embed'); ?>
<div class="col-xs-6 col-sm-4 video-block"> <a href="<?php the_permalink(); ?>"> <div class="video-wrapper">
</div> </a> <?php the_title(); ?> </div>