<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My Quick Fix &#187; WordPress</title>
	<atom:link href="http://myquickfix.co.uk/index.php/category/computers/web-development/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://myquickfix.co.uk</link>
	<description>Quick fixes for niggly problems...</description>
	<lastBuildDate>Thu, 24 Sep 2009 15:10:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress replaces double and tripple hyphens (&#8211; or &#8212;)</title>
		<link>http://myquickfix.co.uk/index.php/2009/01/wordpress-replaces-double-and-tripple-hyphens-or/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/01/wordpress-replaces-double-and-tripple-hyphens-or/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 17:29:12 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[hyphens]]></category>
		<category><![CDATA[wptexturize]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=258</guid>
		<description><![CDATA[Problem
The other day I was trying to type two hypens (&#8211;) in a post, and when I saved/published the post, WordPress reformatted the hypens to display as an &#8216;en dash&#8216; (–).
More Info: After some searching about, and some helpful info provided in the WordPress Codex, I found out about a WP function called &#8216;wptexturize&#8217; which is applied each time a post is rendered. The function &#8211; which can be found in &#8216;wp-includes/formatting.php&#8217; &#8211; replaces quite a few things, like &#8482; to ™ etc.
Solution
You could stop this happening a number of ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>The other day I was trying to type two hypens (&#8211;) in a post, and when I saved/published the post, WordPress reformatted the hypens to display as an &#8216;<a href="http://en.wikipedia.org/wiki/Dash#En_dash">en dash</a>&#8216; (–).</p>
<p><strong>More Info:</strong> After some searching about, and some helpful info provided in the <a href="http://codex.wordpress.org">WordPress Codex</a>, I found out about a WP function called <a href="http://codex.wordpress.org/Function_Reference/wptexturize">&#8216;wptexturize&#8217;</a> which is applied each time a post is rendered. The function &#8211; which can be found in &#8216;wp-includes/formatting.php&#8217; &#8211; replaces quite a few things, like &#8482; to ™ etc.</p>
<h2>Solution</h2>
<p>You could stop this happening a number of ways i.e. editing the function to stop it doing the replace altogether, or install a plugin that does it (maybe <a href="http://wordpress.org/extend/plugins/wp-unformatted/">this one</a>, haven&#8217;t tried it!).<br />
I decided to use WordPress&#8217;s <a href="http://codex.wordpress.org/Function_Reference/remove_filter">remove_filter</a> function to stop the reformatting taking place.</p>
<p>To do this, open the &#8216;functions.php&#8217; file within your theme. If one does not exist, create it. In my installation the file was here:</p>
<blockquote><p>/wp-content/themes/[my-theme-name]/functions.php</p></blockquote>
<p>Add the following code to the bottom of the file, taking care not to end up with too many or too few <span style="color: #ff0000;">&lt;?php</span> tags:</p>
<blockquote><p><span style="color: #ff0000;">&lt;?php</span><br />
<span style="color: #0000ff;">remove_filter(&#8216;the_content&#8217;, &#8216;wptexturize&#8217;);<br />
remove_filter(&#8216;the_title&#8217;, &#8216;wptexturize&#8217;);</span><br />
<span style="color: #ff0000;">?&gt;</span></p></blockquote>
<p>Then save the file (or &#8216;update&#8217; if you&#8217;re doing this via the theme editor in WP admin) and view your post. That should do it!</p>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/01/wordpress-replaces-double-and-tripple-hyphens-or/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
