If you’ve ever tried to insert code into a WordPress post, one of the following has probably happened to you:
Your HTML code was rendered as such.
WordPress stripped the code from the post entirely.
WordPress turned "straight quotes" into “curly quotes” — not good if you want your users copying/pasting code from your blog!
Here’s how to get around these annoying problem and make the code show as-is:
Put the code into a basic text processing program (like Notepad), and perform the following find/replace operations:
Find
Replace
>
"
"
Click the “Code” tab on the WordPress post composition page, and then paste in the “fixed” code.
Be sure to encase your code in a tag for purposes of semantic correctness.
If you use code in your posts on a frequent basis, it’s probably worth it to disable the visual editor , since that can mess up the cod...
Content suppressed by ://URLFAN, for full article visit source
Related archived posts

Seriously...Stop Writing CodeFrom: web2announcer.com
Post Date: 2008-10-28 08:54:01
In my last year of university I had the privilege of being flown out to Toronto to attend VS Live! 2004. It was the first developer conference I'd been to (at least of scale), and and even though it was years ago there are a lot or moments that still resonate with me today....
more 
Wordpress questionFrom: forums.freelanceswitch.com
Post Date: 2008-11-29 12:11:08
OK, I think you need to do some Wordpress reading as it sounds like you’re missing some of the basics. In particular, read up on The Loop and templates. The Wordpress Codex is a good place to start if you haven’t already. http://codex.wordpress.org/Main_Page As for your current problem, if you post an example of your code (how you’re generating your links) and tell me which template your code is in (page.php, archive.php, etc.) it will be easier all round. :-) To be honest ...
more 
WordPress noob totally frustrated trying to export from 1.5.1.3From: ask.metafilter.com
Post Date: 2008-11-01 20:40:04
Way old version of WordPress (1.5.1.3). I need to upgrade, obviously. I am considering switching hosts at the same time and so I am trying to figure out how to export the current blog so I can import it once upgraded at either current or new host. But I can’t figure out how to export on 1.5.1.3 and I am so frustrated.
Apologies in advance for length. I know just enough to get in trouble, as you will see, so I am trying to cover all my bases in terms of providing information.
My site ...
more 
Design Widgets SubPanel WordPress CodexFrom: thewordpressplugin.com
Post Date: 2008-11-07 10:30:19
Design Widgets SubPanel WordPress Codex Design Widgets SubPanel. Themes usually have at least 1 or 2 sidebars. Sidebars are the narrow columns to the left or right of your blog posts. You can configure your sidebar by
WordPress Widgets Binary Bonsai So WordPress.com has added WordPress Widgets . Well guess what, in not too long, K2 will have something very similar to that, if not better. ...
more 
Template Tags WordPress CodexFrom: thewordpressplugin.com
Post Date: 2008-11-08 09:30:18
Template Tags WordPress Codex Template tags are used within your blog’s Templates to display information dynamically or otherwise customize your blog, providing the tools to make it as individual and ...
more
More posts from wordpress.jdwebdev.com

How to Optimize Your WordPress Database TablesFrom: wordpress.jdwebdev.com
Post Date: 2008-03-04 06:21:49
As time goes on, all the database operations performed on your WordPress tables will create what’s called “overhead.” To keep your database running smoothly, you can get rid of this overhead by “optimizing” your tables (similar to defragmenting your hard drive).
Here are two ways to do it.
Method 1: WP-DBManager
Download and install the WP-DBManager plugin.
The plugin allows you to, among other things, optimize your tables from within your Word...
more 
BuddyPress: Turning WordPress into a Social NetworkFrom: wordpress.jdwebdev.com
Post Date: 2008-03-05 07:00:13
It was announced just yesterday that BuddyPress , a project that aims to turn WordPress MU into a social network, has been acquired by Automattic to help continue its development.
This is great news! I think BuddyPress has a lot of potential in today’s social-oriented web. If early versions are indicative of the final release, BuddyPress is going to be more than a plugin — more like powerful “plugin system.”
I’ve actually been tracking the BuddyPress proje...
more 
How to Turn Off WordPress’s Visual EditorFrom: wordpress.jdwebdev.com
Post Date: 2008-03-06 07:00:06
Don’t like WordPress’s visual editor? Turn it off:
In WordPress 2.5, click your username in the top-right-hand corner of your WordPress admin. In earlier 2.x versions, click “My Profile” in the same area.
Uncheck “Use the visual editor when writing” under “Personal Options.”
Click “Update Profile.”
And that’s it!
...
more