如何在WordPress页面或帖子内容中删除多余的p标签 [英] How to remove extra p tags in wordpress pages or posts content
本文介绍了如何在WordPress页面或帖子内容中删除多余的p标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经添加了remove_filter('the_content','wpautop');在functions.php中,但仍获得额外的p&内容中的br标签.
I already added the remove_filter ('the_content', 'wpautop'); in the functions.php but still getting the extra p & br tags in the content.
请检查此页面 http://insideoutdogtraining.com/rescueseries
推荐答案
使用
echo get_the_content();
代替
the_content();
以您的主题为背景
这篇关于如何在WordPress页面或帖子内容中删除多余的p标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文