If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!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:
<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:
... i'm not clear on why this happens<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>
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:
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.<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>
also, when are the <code> tags necessary?
please help this wordpress noob...![]()
DomainAnimal.com
Patience is a virtue
Make sure that the wsywig editor is turned OFF when you make posts.
In the user profile, make sure "Use the visual editor when writing" is UNCHECKED. It should be off.
Then make your post, the <code> tag is NOT necessary.
Check out my blog at www.BillHartzer.com
Yes bHartzer is right, I've had the same problems before.
Courteous and Respectful DNForum Member!
Text Link Ads WhyPark.com - Stop Parking Your Domains - Society's Problems - PM me to Post your Opinions
it does not seem to have helped. i dont think it addresses the issue. by unchecking that box it just takes away the one option for writing posts.
edit: wait, i think i have it. because now it is recognizing the <div> element where before it wasn't which is why i was using <p align="center"> which was not right.
Last edited by HomerJ; 01-20-2008 at 03:49 PM.
DomainAnimal.com
Patience is a virtue
Try help at wordpress.org or their forum
Medical and Health Directory |
Health Directory |
Hostgator Hosting Coupon -- hostbidscom -- Save $9.94
This is a common wordpress glitch. I deal with it everyday. The work around is easy. Once you embed your video you must post directly and DO NOT go back into the post for any reason. Editing the post breaks the Div tags - no one knows why, but it does.
You can also use an offline editor such as Windows Live Writer and it will solve the issue.
Write your post, embed last, publish.
what a relief to hear that i am not crazy after all.This is a common wordpress glitch. I deal with it everyday.
DomainAnimal.com
Patience is a virtue
why not switching over to Movable Type?
::: www.MobileDesign.com ::: Mobile Website/App Design Showcase and Resources
I have had this as well and sorted it our by putting<center> before the code and </center> after the code. Centers them for me.
<center><object height="373" width="425">
<param name="movie" value="http://www.youtube.com/v/hVQXrKDt_Dk&rel=1&color1=0x234900&colo r2=0x4e9e00&border=1"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/hVQXrKDt_Dk&rel=1&color1=0x234900&colo r2=0x4e9e00&border=1" type="application/x-shockwave-flash" wmode="transparent" height="373" width="425"></embed></object></center>
Just anther tip for those having problems aligning images left or right I found it easier just to add align="left" into the image code to wrap the text.
eg: <img src="http://uploads.co.za/files/g1shis5gzkgm5k7bm3b9.jpg" alt="cummins power solutions" align="left" />
Last edited by tractor; 01-21-2008 at 02:36 AM. Reason: Automerged Doublepost
bhartzer is correct, it should solve the problem.
Bookmarks