1) Use the <code> and </code> tags around the HTML in your post, and it should display properly.
2) To write a post, you generally need to have a username and password on the blog – just don’t let anyone else register! Also, it might pay to have a look at Roles and Capabilities.
3) http://codex.wordpress.org/Creating_a_Search_Page
Hi Karrde,
Thank you for the guidance.
It was really helpful. Thank you once again.
Hi Karrde,
I have posted the below data in to the blog.
<html>
<head>
<title>abcd.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="JavaScript">
document.write("<frameset rows=* frameborder=NO border=0 framespacing=0 cols=*>");
document.write("<frame name=main src=http://www.yahoo.com"+document.location.search+">");
document.write("</frameset>");
document.write("<noframes>");
document.write("< body bgcolor=#FFFFFF text=#000000>");
document.write("</body></noframes>");
</script>
</html>
And the output I got again is a blank page. What am I doing wrong here.
what the heck?!? You’re putting that all in a post using the post editor?!?
Um, why?
WordPress, and the theme you’re using, already provide all the framework (<html>, <head>, <body> tags, for instance).
You, as author, provide content using the Write Post or Write Page options. Your theme provides layout.
Perhaps if you explained a bit exactly what it is you’re trying to do…
Hi HandySolo,
Sorry for putting that.
I just want to put a blog post which has the above html code.
But when I create a post like that I am getting a blank page. So I was adviced by Karrde to put the code with a block. I tried the same and it didn’t work. So for explaining the same I had put the above code.
Hope to get your valuable guidance.
Ok, so all of that “gunk” above is what you want to show in a code block within a post? Gotcha.
As you’ve noticed, just wedging it in <code> tags doesn’t do much for you. There are a few plugins out there that will help though. I use: http://priyadi.net/archives/2005/09/27/wordpress-plugin-code-autoescape/
Only wrinkle is remembering to turn off the wysiwyg editor before inserting code. 🙂
HS – I think he wants to have that code OUTPUT to the live site… I don’t think he’s trying to display the code, but rather thinks that it’s necessary to post all that code in the editor to get a page/post.
IF that’s the case, jayeshj – the editor is designed for you to just TYPE what you want it to say in there – you don’t need to use HTML to build a post/page on the site if you’re using wordpress. You just type and hit “publish”.
Hi HandySolo,
Yes you got me exactly.
I am trying out the plugin now. Will get back if any further help is required.
Thank you a lot all your guidance.
ladydelaluna, thank you for the update.
i just decided to post my query to this topic rather than create a new one..
is there no-way to post html code? i didn’t really understand much of what was said prior so forgive me…
for example, i want to post the imeem playlist thingamajig, the code for which is:
<object width=\"300\" height=\"290\"><param name=\"movie\" value=\"http://media.imeem.com/pl/3Ezbzi7hxO/aus=false/\"></param><param name=\"wmmode\" value=\"transparent\"></param><embed src=\"http://media.imeem.com/pl/3Ezbzi7hxO/aus=false/\" type=\"application/x-shockwave-flash\" width=\"300\" height=\"290\" wmode=\"transparent\"></embed></object>
imeem says the wordpress doesn’t actually allow this. that’s a shame.
are there any plans for allowing in the near future tho?