一个不是很起眼的问题,多发生在喜欢贴代码的博客里,有个不是很出名的插件可以解决。而我曾尝试把这个插件代码放到模板的functions.php里,测试成功。代码如下:

//禁止半角转全角 $qmr_work_tags = array( 'the_title', 'the_content', 'the_excerpt', 'comment_text', 'list_cats', 'single_post_title', 'comment_author', 'term_name', 'link_name', 'link_description', 'link_notes', 'bloginfo', 'wp_title', 'widget_title', 'term_description', 'category_description', 'widget_text' ); foreach ( $qmr_work_tags as $qmr_work_tag ) { remove_filter ($qmr_work_tag, 'wptexturize'); }