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?
- Query all posts where a meta key does not exist
- How come Featured Image isn’t showing up in my Custom Post Type?
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- what is the correct way to compare dates in a WP query_posts meta_query
- Advanced search form with filters for custom taxonomies and custom fields
- add_image_size() for specific Post Types
- Setting a post’s featured image from an embedded YouTube video
- Meta query with boolean true/false value
- How to disable generation of default image sizes for some custom post types?
- Get post with multiple meta keys and value
- Correctly delete posts with meta and attachments [duplicate]
- Using add_theme_support inside a plugin
- Custom user role cannot see or modify featured image
- Make featured image required
- Storing revisions of metadata for custom post type
- How to remove “featured image” functionality from a custom post type?
- 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
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Echo all meta keys of a custom-post TYPE
- Custom Post type – how to get checkbox to update meta field to null
- Featured Image Panel Missing From Custom Post Type in WordPress 3.2
- How can I filter posts by post_parent in the admin?
- How do I Paginate Search Results for Custom Post Types?
- Implementing “Video of the Day” Feature?
- set_post_thumbnail_size in percent, not pixels?
- Best way to filter featured image text for a custom post type?
- Ordering posts having multiple post-meta date fields
- Custom Post Type with Input fields to seperate table on database.
- 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
- How to programmatically create a connection with [Plugin: Posts 2 Posts] on cpt publish?
- Post metadata deletes itself
- How to create a mini directory in WordPress?
- How Can I save multiple records in same meta key?
- If featured image doesn’t exist, show post content
- Get all posts from custom post type and insert in select input as metabox
- Detect meta value changes when post is updated (post_updated)
- Search everything (posts, pages, tags, cpt, meta)
- Permalinks using event date (year & month) instead of publication date
- set and unset the custom field value
- Custom Post Type: Set post_title equal to a custom post type field
- I can’t set meta_key in my custom post type query
- Grossly inefficient wordpress loops!
- Compare 3 custom fields and sort by oldest
- How I upload, save and set a featured image from my frontend?
- How Do I Use WP_Query to Run This Database Query as Search Result?
- WordPress Admin Panel search posts with custom post meta values along with title
- Creating a custom post type upon registration
- 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
- Reason action hook won’t work with update_post_meta from frontend form? Alternative?
- Trouble adding custom featured image for custom taxonomy TERMS
- Can’t sort order of wp_query with 2 meta keys
- Showing Meta Data for Custom Post Types?
- How to get source of custom meta image?
- Having trouble with custom post type / meta box
- Query for posts from any post type but only add instock products
- How can I include meta box content when searching?
- update a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- How can i place Feature Image under title field in wp-admin?
- Embed ‘New Post’ Form Inside ‘New Post’ Form
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- How to remove thumbnail sizes for specific post type on a child theme?
- Featured image metabox not showing up
- image srcset returns false
- Displaying Meta Box Image
- Custom post type category not displaying in custom post type
- How to use different featured image size for a custom post type?
- get_the_post_thumbnail() returning empty string on custom post type
- Change admin post thumbnail size for custom post type only
- How to make custom post meta wp_editor translatable?
- Automatically adding meta data to posts or multiple query help
- How to keep a check box in custom meta box for custom post type checked by default for add new post?
- Show metabox in custom-post-template depending on taxonomy term?
- Should I use custom post types for a front page video feature (vimeo)?
- ACF Upload Image in repeater from front-end with custom form? – add_post_meta()
- update_post_meta() whenever custom post type is updated
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Trigger “unsaved changes” dialog for custom post meta changes
- Using date stored as custom field to filter posts displayed in admin
- Conditionally Query Custom Post Types by Post Meta for Blog Home Page?
- Displaying custom posts only if custom meta box’s date is not expired
- Displaying Metabox value (custom post type taxonomy)
- How to List Thumbnails based on Custom Categories
- How do I sort a custom post type admin column using two meta keys?
- reference the current category being used in the category.php page
- Add Post Url to Manage Edit Screen
- add_image_size for post type
- Gutenberg Featured-Image-panel missing when user with custom role edits Custom Post Type
- How to best delete orphan wp_postmeta
- How can I display my custom metaboxes on a custom post template?
- Display all custom post type posts and order them by an optional meta_key
- Meta Box Only in CPT Edit Page, Not in Add New