从the_content?</p>中删除<p>和<br/>

时间:2013-10-24 14:03:30

标签: wordpress

升级到wp 3.6后,我无法从<p>删除the_content代码...

我在我的主题功能中使用了它并且工作正常,现在这个过滤器不起作用,

remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );

1 个答案:

答案 0 :(得分:0)

更改优先级:

remove_filter('the_content', 'wpautop', 99);
remove_filter('the_excerpt', 'wpautop', 99);