editor - Wordpress not saving <p> tags for custom taxonomy term description

I'm using wordpress API to display content. I'm using the classic editor since guttenberg is bugging out elsew

I'm using wordpress API to display content. I'm using the classic editor since guttenberg is bugging out elsewhere.

I noticed that if a paragraph does not have inline styles, wordpress does not save the <p> tags in the database. So when I call the api, the response is something like this:

first paragraph.

second paragraph.

There isn't even a <br> tag in between, just a newline I believe.

I just need to style paragraphs to be spaced apart, so I would prefer to have the paragraph tags.

Looked into wpautop function, but i just does not seem to save paragraph tags unless I tweak inline styles.

Any suggestions or alternatives?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745454798a4628435.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信