Pasting Code Into A WordPress Post
Whether you’re setting up an affiliate center for your products, or showing readers how to use code on their websites, you’ll want to be able to display code in your posts.
One a static HTML website, you can use a textarea, or HTML special characters to accomplish this. Unfortunately, it’s not so easy in WordPress.
It is possible though.
The first thing you need to do is install the WP-Syntax plugin.
Second, you’ll want to switch to the HTML editor (not the visual editor) and wrap the code you want to display in the following code:
<pre lang="text"><CODE></pre>
This way, when you paste the code that your readers need to copy, it will look like this:
<a href="http://www.michellewatersonline.com/pasting-code-into-a-wordpress-post/">Link to this post</a>
Trouble Posting Flickr Pics To WordPress?
Me too.
I upgraded by blog to WordPress 2.8, after setting fire to the old version, and then installed WordPress Flickr Manager 2.3. As I’ve seen reported by others, this nifty plugin didn’t work.
So, if you’re in this quandry, here’s the solution:
- Deactivate the existing plugin in your WordPress admin area.
- Go to this thread on the WP forums and scroll down to where OgreTheGreat posts a fix. Do NOT download his version though.
- Instead, go to the second post by Fwaggle and download his edited files, which are in .zip format. Unzip them.
- Login to your hosting account via an FTP client such as SmartFTP and delete the existing WordPress Flickr Manager directory.
- Upload the new plugin directory.
- Go back to your WordPress admin and activate the plugin. All fixed!
