[wp-hackers] How to fix oEmbed in 2.9
Aaron Jorbin
aaron at jorb.in
Wed Dec 16 22:12:53 UTC 2009
Yes, you need to add a filter to embed_oembed_html that modifies it. Read
up on filters at http://codex.wordpress.org/Function_Reference/add_filterand
http://codex.wordpress.org/Plugin_API#Filters . It shouldn't be too hard
with a regular expression.
http://aaron.jorb.in
twitter: twitter.com/aaronjorbin
On Wed, Dec 16, 2009 at 2:08 PM, Aldo Latino <aldolat at gmail.com> wrote:
> Il giorno mer, 16/12/2009 alle 15.28 -0600, Otto ha scritto:
> > The embed_oembed_html filter is applied to all the returned HTML.
>
> Probably I didn't explained well my question. :-)
>
> 1. I want to publish a post from youtube
> 2. I copy & paste the URL such as
> http://www.youtube.com/watch?v=nTDNLUzjkpg in my writing panel
> 3. I publish the post
> 4. I go to my frontend and the video is on top of other elements,
> such as my dropdown menu.
>
> To fix this it would be enough to add the parameter
> <param name='wmode' value='transparent' />
>
> and wmode to embed tag:
> <embed ... wmode="transparent" ... >
>
> Is there a way to modify the code returned from youtube in order to add
> these lines?
>
> --
> Aldo Latino
> OpenPGP key: 4096R/0xA18E41E8
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list