wordpress如何去掉the_content的p标签

Last updated: January 14, 2020


把下面的一段代码添加到functions.php里面,去掉the_content的P 标签。


PHP
// Remove p tags from category description
remove_filter('term_description','wpautop');
1
2
// Remove p tags from category description
remove_filter('term_description','wpautop');