Remove Fancy Quotes in WordPress
As I am working on the site here, I have noticed a behavior of WordPress that is indeed annoying. By default, WordPress renders quotes as the fancy style of quotes. Usually this would not be an issue as they are awfully pretty quotation marks, curving according to their placement on the string. However, when using code examples, this is not a desirable effect as it will keep users from being able to copy & paste code examples for their own use.
The Problem. How do I remove fancy quotes from my posts in WordPress?
The Fix. In an effort to fix this problem I came across an easy fix. The folks over at semiologic.com have put together an easy to install plugin for WordPress enttitled "Unfancy Quote Plugin". The plugin is a single PHP file that you need to upload to your /content/plugins directory in your WordPress install. Once you have it uploaded just head over to the admin panel and activate the plugin! Presto!
Unfancy Quote Plugin for WordPress
How does it work? Well it's actually quite simple. The plugin utilizes the PHP str_replace() function to seek out instances of the fancy quotes in strings and replaces them with standard quotes. This is possible by using the HTML entities codes for the corresponding quotation marks.


