Skip to content

Monthly Archives: February 2010

Disable Quotation Mark Modifications from WordPress


Remove automatic modification of quotation marks (e.g. " to opening and closing quotation marks) by entering the following 4 lines to the functions.php file of your theme. remove_filter('the_content', 'wptexturize'); remove_filter('the_title', 'wptexturize'); remove_filter('the_excerpt', 'wptexturize'); remove_filter('comment_text', 'wptexturize'); As the code says, it removes the wptexturize filter, which does other things as well, e.g. changes double dashes (--) […]

301 Redirect [PHP]


<?php header("HTTP/1.1 301 Moved Permanently"); header("Location:"); Done. PHP 301 redirect is now rolling in given directory once you put that, say, in a file named index.php.