Start pasting youtube or vimeo embeds into your post editor, and the plugin will take care of the rest.
I will note down that the plugin description needs some clarification though, to help out others who may also be confused.
Thank you! I see the image being downloaded into my media library…
but unfortunately, it isn’t updating the featured image on the post.
get_post_thumbnail returns nothing.
Also, I need to figure out if I can run this as a batch on all my existing videos. My videos were created as custom post types with an ACF field called “embedded_video” to capture the url. It would be great not to have to open each one of these and embed then save the video.
Are you echo’ing your use of get_post_thumbnail() ?
I believe we have batch processing of already existing posts in *some* state on GitHub, but I know we need to do some branch/merge juggling before we release it at all, so I’m not sure how ready it is at the present moment. Definitely not one we could release to everyone.
If your videos aren’t in the post content, then you’ll need to add a filter to change where our plugin checks for. https://plugins.trac.ww.wp.xz.cn/browser/automatic-featured-images-from-videos/tags/1.0.3/automatic-featured-images-from-videos.php#L48
We’re aware we don’t provide extra context like a post ID, which is one thing fixed in the GH copy but not released. So you’ll need to find a different way to get that value, even if just checking the current URL and the $_GET global.