Embeding a Video fro YouTube etc.

3.13K viewsWordPress
0

Hi there,

I am using the editor text, and everything is working fine. I embed a video to the content

and the video is added to the text editor! which is great, but once I post the content to go live, the video code is just stripped off.

Solution number one is oembed – I know that if the users will just paste the url of the video as a regualr text, it will work once I have oembed plugin activated, but I want it to work through the text editor function of embedding a video. It seems that the Anspress strip off the iframe of the video once I post it.

Any ideas?

commented

Attachments

111.jpg

Hi, Its not AnsPress, but its WP content and KSES filters. You can override it by using hooks. But this will not be good, never allow user to post iFrames.