WordPress后台添加的摘要内容去除<p>和</p>。
WordPress后台添加的摘要内容去除p,
在wordpress主题的functions.php文件中添加如下代码:
/* 去除文章和摘要的p */ remove_filter( 'the_excerpt', 'wpautop' );//移除摘要p自动标签