While using Block Quotes or when Posting Codes , WordPress changes the normal quotes to curly Quotes they look fancy but when we copy and Paste the Code the , the Code Throws an error because of quotes.
Too Remove those Curly Quotes :
- Login to your WordPress Blog
- Go to Appearance > Editor
- add the below code in functions.php of your theme :
remove_filter('the_content', 'wptexturize');
- Save functions.php
If you take a look at the code you can see that , we are using remove_filter() function , that allows us to remove a function attached to a particular filter hook.
Filter functions are very powerful because they allow us to override some of WordPress features without modifying WordPress core.