添加到functions.php文件
remove_filter('the_content', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
remove_filter('comment_text', 'wptexturize');
remove_filter('the_title', 'wptexturize');
wptexturize函数负责对存储在WordPress中的文本进行许多自动更改,例如自动省略号(…),em和破折号,印刷商引号等。
翻译自: https://css-tricks.com/snippets/wordpress/disable-automatic-formatting/