crowdfavorite / wp-post-formats

An admin interface and structured post meta for WordPress post formats.
363 stars 78 forks source link

Can't make YouTube videos display in Video post format #42

Closed JonathanMenon closed 11 years ago

JonathanMenon commented 11 years ago

I love your plug-in. I'm new to theme development, and this has made everything so much easier, so I'm really hoping you can help me.

I have tried to place an OEMBED code for a YouTube video in the "VIDEO URL (OEMBED) OR EMBED CODE" field in the Edit Post screen (Video tab) and I can't get it to display in my theme, even though post formats are supported.

When I place the straightforward web link to the YouTube video in the normal text content window the video displays somewhat awkwardly, but obviously I want to take full advantage of the Embed code field.

I don't know if it's because I have the OEMBED code structure wrong, or if I need to add a function call in my php template for the video post. If I am missing a step in the php I would be grateful if someone can tell me which call I need to make.

I have tried several versions of an embed code, and none of them have worked. Here is my latest:

http://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=ONPVt-IJNvI&rel=0

Perhaps I am simply pasting in the wrong code?

Many thanks in advance for your help.

JonathanMenon commented 11 years ago

I figured it out. Sorry for the trouble.