I’d like to create a front page video feature that embeds a vimeo video of the users choosing. I’d like the user to only have to input the video code. For instance, for http://vimeo.com/24474320 – I’d like them only to have to input “24474320”.
Should I use custom post types for this? If so, how do I set this up so that it limits the field size? I’m just getting started, and I’m relatively new at wordpress, so I don’t need to get into specific code necessarily – it’s more of a strategic question. How would you tackle this?
Thanks,
Tim
———————–EDIT (Monday, June 6)
It would be awesome if all the user (backend) saw was this:
FRONT PAGE VIDEO FEATURE
Vimeo URL: [____________________________]
[Save] [Cancel]
Then I would call that video into the front page feature.
With oEmbed support in both WordPress and on Vimeo’s end, why not just use the
[embed]
shortcode?This is easy to explain, and users are generally pretty comfortable with just copy-and-pasting a URL directly, rather than having to extract just the ID out of it.
You can also turn on the option to just use the URL on a line by itself in a post, without the
[embed]
shortcode. Personally, I prefer the explicit shortcode, because it always works, and there’s less chance of other plugins interfering.You could set up a custom post type, and simply not register the editable content area.
A better solution might be to look into the new Post Formats feature within WP. It explicitly has a post format of “video” that you might look into.