wordpress自动加p标签的函数wpautop 想在有换行的字符串中加入p标签,可以使用函数wpautop,具体可参考https://developer.wordpress.org/reference/functions/wpautop/ Mine吧 » wordpress自动加p标签的函数wpautop