{"id":707,"date":"2019-02-20T10:10:34","date_gmt":"2019-02-20T02:10:34","guid":{"rendered":"https:\/\/www.intelliwolf.com\/?p=707"},"modified":"2019-11-17T14:40:04","modified_gmt":"2019-11-17T06:40:04","slug":"fix-wordpress-quotation-marks","status":"publish","type":"post","link":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/fix-wordpress-quotation-marks\/","title":{"rendered":"How To Fix WordPress Quotation Marks"},"content":{"rendered":"\n

I was going through a previous post to check how to increase the memory limit<\/a> on a WordPress install.<\/p>\n\n\n\n

When I copied the code, I realized there was a big problem: WordPress was automatically changing \"straight quotes\" into \"smart quotes\".<\/p>\n\n\n\n

How\u00a0to\u00a0fix\u00a0WordPress\u00a0quotation\u00a0marks:<\/strong> Go to functions.php<\/em> and add this code: remove_filter('the_content', 'wptexturize');<\/em> making sure it's in a child theme. That's all you need to do.<\/p>\n\n\n\n

See our tutorial on how to create a WordPress child theme<\/a> if you don't already have one.<\/p>\n\n\n\n

You're changing this:<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

Into this:<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

To change WordPress \"Smart Quotes\" to straight quotes in the titles<\/strong>, add this code to functions.php<\/em>: remove_filter('the_title', 'wptexturize');<\/em> Be sure to save it in a child theme.<\/p>\n\n\n\n

You don't notice the smart quotes when you're writing, because WordPress only switches it on display.<\/p>\n\n\n\n

The straight quotes are saved to the database, regardless of whether you remove the wptexturize<\/em> filter or not.<\/p>\n\n\n\n

There's a plugin that claims to fix these smart quotes before they hit the database, but that's not how WordPress does it any more. No need for it, just add one line to your functions.php<\/em>.<\/p>\n\n\n\n

Why use straight quotes rather than smart quotes?<\/h2>\n\n\n\n

Ordinarily, it doesn't really matter which style you use. It will usually just come down to personal preference.<\/p>\n\n\n\n

If you're posting code, like I am on this site, having smart quotes will cause issues with anyone who copies and pastes your code.<\/p>\n\n\n\n

wptexturize<\/em> doesn't just affect quotes. It also changes dashes and ellipses, among other things. See the WordPress reference<\/a> for everything it changes.
<\/p>\n","protected":false},"excerpt":{"rendered":"

I was going through a previous post to check how to increase the memory limit on a WordPress install. When I copied the code, I realized there was a big problem: WordPress was automatically changing “straight quotes” into “smart quotes”. How\u00a0to\u00a0fix\u00a0WordPress\u00a0quotation\u00a0marks: Go to functions.php and add this code: remove_filter(‘the_content’, ‘wptexturize’); making sure it’s in a<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"yoast_head":"\nHow To Fix WordPress Quotation Marks<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Fix WordPress Quotation Marks\" \/>\n<meta property=\"og:description\" content=\"I was going through a previous post to check how to increase the memory limit on a WordPress install. When I copied the code, I realized there was a big problem: WordPress was automatically changing "straight quotes" into "smart quotes". How\u00a0to\u00a0fix\u00a0WordPress\u00a0quotation\u00a0marks: Go to functions.php and add this code: remove_filter('the_content', 'wptexturize'); making sure it's in a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/\" \/>\n<meta property=\"og:site_name\" content=\"Intelliwolf\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-20T02:10:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-17T06:40:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png\" \/>\n<meta name=\"author\" content=\"Mike Haydon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mike Haydon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/\"},\"author\":{\"name\":\"Mike Haydon\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343\"},\"headline\":\"How To Fix WordPress Quotation Marks\",\"datePublished\":\"2019-02-20T02:10:34+00:00\",\"dateModified\":\"2019-11-17T06:40:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/\"},\"wordCount\":273,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png\",\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/\",\"url\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/\",\"name\":\"How To Fix WordPress Quotation Marks\",\"isPartOf\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png\",\"datePublished\":\"2019-02-20T02:10:34+00:00\",\"dateModified\":\"2019-11-17T06:40:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#primaryimage\",\"url\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png\",\"contentUrl\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.intelliwolf.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\/\/www.intelliwolf.com\/category\/general\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Fix WordPress Quotation Marks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.intelliwolf.com\/#website\",\"url\":\"https:\/\/www.intelliwolf.com\/\",\"name\":\"Intelliwolf\",\"description\":\"WordPress, Web Design and Coding Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.intelliwolf.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.intelliwolf.com\/#organization\",\"name\":\"Intelliwolf\",\"url\":\"https:\/\/www.intelliwolf.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-content\/uploads\/intelliwolf-logo-300t.png\",\"contentUrl\":\"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-content\/uploads\/intelliwolf-logo-300t.png\",\"width\":300,\"height\":100,\"caption\":\"Intelliwolf\"},\"image\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343\",\"name\":\"Mike Haydon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g\",\"caption\":\"Mike Haydon\"},\"sameAs\":[\"https:\/\/intelliwolf.com\/about-mike-haydon\/\"]}]}<\/script>\n","yoast_head_json":{"title":"How To Fix WordPress Quotation Marks","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/","og_locale":"en_US","og_type":"article","og_title":"How To Fix WordPress Quotation Marks","og_description":"I was going through a previous post to check how to increase the memory limit on a WordPress install. When I copied the code, I realized there was a big problem: WordPress was automatically changing \"straight quotes\" into \"smart quotes\". How\u00a0to\u00a0fix\u00a0WordPress\u00a0quotation\u00a0marks: Go to functions.php and add this code: remove_filter('the_content', 'wptexturize'); making sure it's in a","og_url":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/","og_site_name":"Intelliwolf","article_published_time":"2019-02-20T02:10:34+00:00","article_modified_time":"2019-11-17T06:40:04+00:00","og_image":[{"url":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png"}],"author":"Mike Haydon","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mike Haydon","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#article","isPartOf":{"@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/"},"author":{"name":"Mike Haydon","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343"},"headline":"How To Fix WordPress Quotation Marks","datePublished":"2019-02-20T02:10:34+00:00","dateModified":"2019-11-17T06:40:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/"},"wordCount":273,"commentCount":0,"publisher":{"@id":"https:\/\/www.intelliwolf.com\/#organization"},"image":{"@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#primaryimage"},"thumbnailUrl":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png","articleSection":["General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/","url":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/","name":"How To Fix WordPress Quotation Marks","isPartOf":{"@id":"https:\/\/www.intelliwolf.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#primaryimage"},"image":{"@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#primaryimage"},"thumbnailUrl":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png","datePublished":"2019-02-20T02:10:34+00:00","dateModified":"2019-11-17T06:40:04+00:00","breadcrumb":{"@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#primaryimage","url":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png","contentUrl":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2019\/02\/2019-02-20_smart-quotes-600x220.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.intelliwolf.com\/fix-wordpress-quotation-marks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.intelliwolf.com\/"},{"@type":"ListItem","position":2,"name":"General","item":"https:\/\/www.intelliwolf.com\/category\/general\/"},{"@type":"ListItem","position":3,"name":"How To Fix WordPress Quotation Marks"}]},{"@type":"WebSite","@id":"https:\/\/www.intelliwolf.com\/#website","url":"https:\/\/www.intelliwolf.com\/","name":"Intelliwolf","description":"WordPress, Web Design and Coding Tutorials","publisher":{"@id":"https:\/\/www.intelliwolf.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.intelliwolf.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.intelliwolf.com\/#organization","name":"Intelliwolf","url":"https:\/\/www.intelliwolf.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/","url":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-content\/uploads\/intelliwolf-logo-300t.png","contentUrl":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-content\/uploads\/intelliwolf-logo-300t.png","width":300,"height":100,"caption":"Intelliwolf"},"image":{"@id":"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343","name":"Mike Haydon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g","caption":"Mike Haydon"},"sameAs":["https:\/\/intelliwolf.com\/about-mike-haydon\/"]}]}},"_links":{"self":[{"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/posts\/707"}],"collection":[{"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/comments?post=707"}],"version-history":[{"count":0,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/posts\/707\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/media?parent=707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/categories?post=707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/wp-json\/wp\/v2\/tags?post=707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}