Well this is not exactly a WordPress problem / solution.
First you have to either get the video id from the video_site_url
post meta or save the YouTube video id in it’s own post meta field, maybe youtube_video_id
.
Next you can get the thumbnail using one of these url
http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg
http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg
http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg
http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg
Related Posts:
- Do_Shortcode not working for Embed
- How to add multiple featured image in meta box in post editor?
- Advanced search form with filters for custom taxonomies and custom fields
- Meta query with boolean true/false value
- Using add_theme_support inside a plugin
- Make featured image required
- Custom field values deleted when trashing custom post type
- How to get all custom fields of any post type
- Update CPT meta data using REST API
- set_post_thumbnail_size in percent, not pixels?
- How do I remove all the metaboxes for a custom post type?
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- Gutenberg how to make attribute to save to meta
- Get all posts from custom post type and insert in select input as metabox
- How I upload, save and set a featured image from my frontend?
- WordPress Admin Panel search posts with custom post meta values along with title
- How to Update post status using meta data in Custom post TYpe
- Rest Api v2 orderby meta_key in custom post type
- bulk Update post_meta with default values
- Trouble adding custom featured image for custom taxonomy TERMS
- Embed ‘New Post’ Form Inside ‘New Post’ Form
- How to remove thumbnail sizes for specific post type on a child theme?
- get_the_post_thumbnail() returning empty string on custom post type
- Add Post Url to Manage Edit Screen
- add_image_size for post type
- Display all custom post type posts and order them by an optional meta_key
- How can I get_post_meta() in the most efficient way?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Custom Post Status Transition Issues With Get Post Meta
- List all images from a single post meta value
- Force documents to appear in Featured Image dialogue
- Show the same Article Available in Other Categories
- how to delete all users and posts based on ‘user_meta’?
- Meta Key Value in current-user-only loop
- Notice: Undefined index: error and understanding wordpress
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- Multiple featured sizes / images / excerpts
- Deleting Custom Posts & Meta Data on Uninstall
- Widget: Custom Post Type Post Listing Dropdown on Admin Side
- How do I create an archive page as a including metadata?
- How to duplicate entire custom post type
- Two Custom Post Types Many to Many Relationship
- get_post_meta not working on publishing
- how can I register a post_meta field in an existing CPT and then call it again with get_post_custom()?
- Update postmeta Parent when post_status child change
- WordPress request fiter order by related post’s post_title
- Update database from Quick Edit according to Checkbox state of Custom Post Type
- Dynamic Custom Fields
- Show Custom Post Type meta boxes only on Page Edit
- How do you create a custom template to display a category with an image and related posts below?
- Remove Post Custom Meta Box
- Meta Data for Custom Post Type not saving
- Using preg_replace to filter custom textarea
- Check if post with same meta value exists
- Do posts, pages and / or custom post type objects have unique ID numbers or can there be multiple objects with the same IDs?
- Archieve.php not loading for custom post type
- False Positive on has_post_thumbnail
- Meta data (Tags and Categories) for Custom Posts not showing.
- Display different information of a custom post type
- Create Array from custom post type to display a slider
- How to get specific post meta by title or id
- Custom post doesn’t show featured image
- How can I display a drop-down select of Post Names
- $post->post_meta not pulling any post in wordpress/php
- WP_Query of custom post type sorted by meta_key has unexpected results
- copy images from custom field to another custom field
- Cannot obtain custom meta information
- Save Metabox Custom Field Value
- delete duplicate meta_value with same post_id
- Search CPT Title AND Meta
- Empty meta-box returns publishdate if no value is set?
- Building tags and archive using meta from custom post type
- Filter search posts by post meta?
- Custom Meta Box with variable number of fields
- i need to have a tab with gategory post
- Using publish_{custom-post-type} hook for custom post type to update meta doesn’t work
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- Attaching more than 1 parent (Post) to a media file
- How to return/export only data showing on screen in custom post type view all screen
- Use WP_query to match post types based on custom field values
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- How to get post by meta value
- Get meta values from parent post and save in child post
- How do I get all authors posts of a custom post type outside loop
- Stored meta from attachment, video length?
- Custom post type meta fields missing on save_post_type
- Order posts by meta value hiding posts instead of re-ordering
- custom search results – order results differently by post type
- How to get post meta for custom post type and taxonomy
- get_post_meta for Custom Post Type ( CPT )
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- How to create content automatically when a post is published?
- Add auto increment value to custom meta
- Return only custom post types for the page, not all
- Retrieve post data via WPDB class
- Create action running on trashed_post hook to modify post_meta value
- Random meta field from specific custom post type
- Custom Post Type meta value is being saved in array, instead of just the string (as value)
- Custom Form Data save after Login User
- Front end post or photo or both