How to Display Single and Double Quotes in WordPress
I feel like I've been focusing a lot on SQL and database related programming in general, so It's time to switch it up and look at a nagging WordPress problem. I love WordPress (hense this being a WP blog). There are countless things to love about using it. Of course, there are also a few things to hate, loathe, despise, etc. One of these things is how WordPress, by default, renders single and double quotes. I wanted this to be a site where other developers could copy and paste code examples that I have into their own application. As developers, we've come to know the versatility and importance of single and double quotes. So - when I write a SQL query, I'm looking for it to include single quotes - not `s. I have no use for `s. Nobody does. Here is how, with a couple of very simple function calls, to force WordPress to render single quotes and double quotes as you intend them to be rendered. Read more