每当我在WordPress帖子页面上发布一些内容时,它会显示一些段落标签,如 <p>和<br/>.这显示了输出中的一些额外空间.那有什么解决方案吗?如何删除所有标签?
San*_*kar 105
这是因为WordPress的原因wpautop.只需在主题的functions.php文件中添加以下代码行
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
有关更多信息,请访问:http://codex.wordpress.org/Function_Reference/wpautop
| 归档时间: |
|
| 查看次数: |
76894 次 |
| 最近记录: |