I have a video sharing site where users share videos from YouTube, Vimeo, Dailymotion etc, by adding their URL.
The video URL are added via FormidablePro and stored in the custom field “video_url” I’m using another plugin called Video Thumbails which creates thumbnails from the video URL.
The problem I’m having is Video Thumbnails can only create the image if the custom field “video_url” is saved prior to publishing the post.
What I need to happen is, when the user hits the submit button, it saves the custom fields first, then publishes the post — always in that order.
I know there’s a way to do it via functions.php, I just don’t know the code to do it.