I recently decided to build the first wordpress site, but i'm getting frustrated because i cant seem to figure out how wordpress handles code inside the the posts. basically, i'm trying to embed videos, and sometimes wordpress will rearrange the code on me!
i paste it like this:
Quote:
<p align="center"><object height="355" width="425">
<param name="movie" value="http://www.youtube.com/v/abcdefghijklmnop"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/abcdefghijklmnop" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed></object></p>
|
... and then when i view the site i notice it is either not centered, or some other formatting is wrong, so i go back to edit it and i notice that it does not save the way i pasted it but gets altered to look sometimes like this:
Quote:
<p align="center"><object height="355" width="425"></object></p>
<param name="movie" value="http://www.youtube.com/v/abcdefghijklmnop"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/abcdefghijklmnop" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed>
|
... i'm not clear on why this happens
also, i thought for a while i must wrap everything in code tags ( <code> .... </code> ) but then wordpress will also take those tags out and place them above the rest, which then looks like this:
Quote:
<code></code>
<p align="center"><object height="355" width="425"></object></p>
<param name="movie" value="http://www.youtube.com/v/abcdefghijklmnop"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/abcdefghijklmnop" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed>
|
i'm not positive but there seems to be many permutations to the way wordpress decides that the code needs to be rearranged for some reason and i'm having trouble making heads or tales of it. it is also not very consistent on when it wants to do this.. i post a vid and it is fine, then working on the site a few days later and refresh and notice then that it looks off again.
also, when are the <code> tags necessary?
please help this wordpress noob...
