最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论