Fun with Custom Fields - What to Do? (1 post)

  1. techteenager
    Posted 4 years ago #

    Hello everyone,
    I'm trying to make a site with user-submitted videos from YouTube using a simple form. I'm going to have my users put in their video URL (in a custom field) but then trim it down to only the video ID so that I can have all of the 'embedded players' built into single.php (so from 'http://www.youtube.com/watch?v=dQw4w9WgXcQ' => 'dQw4w9WgXcQ'). I also want that custom field video ID to be used in displaying the video image on my site's homepage using the standard YouTube thumbnail format (http://img.youtube.com/vi/VIDEOID/0.jpg). I know my description isn't too clear, but does anyone have an idea of how I can get this done? I tried looking through WordPress' oEmbed script to see how that works, but couldn't figure it out.

    Best Regards,

Topic Closed

This topic has been closed to new replies.

About this Topic