Title: Adding video with object   embed
Last modified: August 18, 2016

---

# Adding video with object embed

 *  [Modifiedcontent](https://wordpress.org/support/users/modifiedcontent/)
 * (@modifiedcontent)
 * [19 years ago](https://wordpress.org/support/topic/adding-video-with-object-embed/)
 * First, congratulations WordPress with 2.2! It’s slick!
 * I’m trying to put video in a post using a very straightforward method; simply
   adding the <object> code under the text code.
 * The video shows up fine. It works. But it messes up the entire page structure
   and I can’t figure out why. The video ends up in the upper right corner and the
   flow of the page is broken.
 * In the source code I don’t see any </div> or whatever that shouldn’t be there.
   Is there something in CSS that does something with <object> or <embed> or other
   elements of the flv embed code? I can’t find it…
 * Is there a way to include the embed code “in isolation” so it doesn’t interfere
   with the structure of the page? I’ve tried putting it in a <div></div>, but the
   editor didn’t allow that. Putting it in <p></p> had no effect.
 * I’m not looking for complicated plugins to include YouTube video or whatever.
 * Any help very much appreciated!

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/adding-video-with-object-embed/?output_format=md)
[1](https://wordpress.org/support/topic/adding-video-with-object-embed/?output_format=md)
2

 *  [mll](https://wordpress.org/support/users/mll/)
 * (@mll)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/adding-video-with-object-embed/page/2/#post-566875)
 * Same here. Very annoying indeed.
 *  [slaydon](https://wordpress.org/support/users/slaydon/)
 * (@slaydon)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/adding-video-with-object-embed/page/2/#post-566881)
 * Same here, in addition to removing line breaks and messing up with the code after
   posting. Unfortunately we wasted so much time with no solution, and we are considering
   to dump WP all over and switch to a more reliable CMS/blogging package.
 * A key point in selecting a CMS solution is its editor’s power and flexibility.
   If the latest version of WP cannot maintain our code and formatting and mess 
   up our posts, then we don’t need it!
 *  Thread Starter [Modifiedcontent](https://wordpress.org/support/users/modifiedcontent/)
 * (@modifiedcontent)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/adding-video-with-object-embed/page/2/#post-566897)
 * Any progress on this? Has it been fixed in the latest version?
 *  [miek](https://wordpress.org/support/users/miek/)
 * (@miek)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/adding-video-with-object-embed/page/2/#post-566898)
 * I must say I find it ridiculous and a bit pathetic this still hasn’t been fixed
   in 2.3.3. Also comments like “you googled with the wrong words, dumbass” are 
   not very encouraging, considering that the issue is something that WP should 
   have originally been able to handle.
 * Other than that, I have been happy to notice WordPress seems to have significantly
   developed since the last versions.
 *  [newonwp08](https://wordpress.org/support/users/newonwp08/)
 * (@newonwp08)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/adding-video-with-object-embed/page/2/#post-566903)
 * I don’t understand half of this discussion but I just checked the code I was 
   trying to use and it includes both “embed” and “object” so it’s possible my question
   is relevant (or maybe I need to start a new topic?)
 * I happened on a video that I liked, decided to try the embed feature, went to‘
   write post’ in my dashboard, clicked on the Code tab, pasted the code in there,
   selected Save and View, and it was amazing. The results looked great! Perfect.
   But that’s not the end of it.
 * After seeing the post previewed and how great it looked, I selected Publish. 
   At which point, the published results were all out of whack. Video off to the
   right side, template visuals off kilter (Firefox). The whole page was messed 
   up.
 * Is that the same thing you all have been discussing? I don’t know if this is 
   the same problem or a different one. But I don’t understand why it looks great
   in draft mode and publishes as a mess. I undid it and tried again a couple times
   with the same results.
 * Any suggestions would be much appreciated, thanks!
 *  [yilmazurgun](https://wordpress.org/support/users/yilmazurgun/)
 * (@yilmazurgun)
 * [18 years ago](https://wordpress.org/support/topic/adding-video-with-object-embed/page/2/#post-566911)
 * Hi everyone, i am using [JW player ](http://www.jeroenwijering.com) and i fixed
   the same issue by using this javascript object code:`<script type=”text/javascript”
   src=”[http://www.jeroenwijering.com/embed/swfobject.js”></script&gt](http://www.jeroenwijering.com/embed/swfobject.js”></script&gt);
 * <div id=”player”>This text will be replaced</div>
 * <script type=”text/javascript”>
    var so = new SWFObject(‘[http://www.jeroenwijering.com/embed/player.swf&#8217](http://www.jeroenwijering.com/embed/player.swf&#8217);,’
   mpl’,’400′,’134′,’8′); so.addParam(‘allowscriptaccess’,’always’); so.addParam(‘
   allowfullscreen’,’true’); so.addVariable(‘width’,’400′); so.addVariable(‘height’,’
   134′); so.addVariable(‘file’,’[http://www.jeroenwijering.com/upload/statistics.xml&#8217](http://www.jeroenwijering.com/upload/statistics.xml&#8217););
   so.addVariable(‘displaywidth’,’140′); so.addVariable(‘searchbar’,’false’); so.
   write(‘player’); </script>`

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/adding-video-with-object-embed/?output_format=md)
[1](https://wordpress.org/support/topic/adding-video-with-object-embed/?output_format=md)
2

The topic ‘Adding video with object embed’ is closed to new replies.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [video](https://wordpress.org/support/topic-tag/video/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 21 replies
 * 11 participants
 * Last reply from: [yilmazurgun](https://wordpress.org/support/users/yilmazurgun/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/adding-video-with-object-embed/page/2/#post-566911)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
