WordPress, source code, and smart quotes

Turns out WordPress tries to make your posts look a little better by swapping out all normal quotes with smart quotes. That’s great for typography, but really bad when you’re posting source code like I often do on here. Trying to run pasted code with smart quotes in it will bring PHP down to its knees.

A quick Google search turned up a plugin called WP Untexturize. What it does is stop WordPress from swapping out smart quotes for normal quotes. Uploaded, activated, and we’re all set.

Question, Comments...

Do you have more questions. Please either leave a comment below or join us in our new forum.

Leave a Reply