作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个标题为“Paper 10x10”的 Wordpress 页面。在我的侧边栏导航中,此页面显示为“Paper 10×10”(请注意,x 被 Wordpress 纹理化,因此 x 变成了乘号 ×)。
我有插件 原始 html 插件安装。它只为 the_content
禁用 wptexturizing .但是导航不在the_content
但在 get_sidebar()
.
我试过 remove_filter:
remove_filter('the_content', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
wptexturize
在我的 Wordpress 博客中全局过滤?
最佳答案
您可以使用 run_wptexturize
全局禁用它过滤器,as detailed here :add_filter( 'run_wptexturize', '__return_false' );
关于Wordpress:全局禁用 wptexturize,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3330800/
我有一个标题为“Paper 10x10”的 Wordpress 页面。在我的侧边栏导航中,此页面显示为“Paper 10×10”(请注意,x 被 Wordpress 纹理化,因此 x 变成了乘号 ×)
我是一名优秀的程序员,十分优秀!