Configuration guides for IT Administrators

Prevent WordPress auto conversion of double hyphen

Prevent WordPress auto conversion of double hyphen

WordPress by default converts the double hyphen ‘–‘ written on the post to single dash. However you can overcome by following this step.

In functions.php, add the following line at the beginning,

remove_filter( ‘the_content’, ‘wptexturize’ );       

Leave a Reply

Your email address will not be published. Required fields are marked *

Lucas Brey

I’m Lucas Brey, a travel blogger sharing practical guides, hidden gems, and honest tips from the road. Follow along for smart itineraries, great food finds, and stories worth bookmarking.

Tags