Wordpress API: add <p> tags to Pods fields

Viewed 28

I'm using the wordpress API with Pods as cms of a web site. I have several Pods that I access from /wp-json/wp/v2/... I'm having a strange problem with wysiwyg content.

Sometimes, API returns the data with paragraph labels <p></p> added into it. And sometimes not. I've checked the database and the data is always stored without the <p> labels (as seen in TinyMCE at Wordpress) but I don't know why some content is being formatted and other not.

I checked the pod configurations and both fields are configured identically, without wpautop checked so I don't know what is adding paragraph labels in one of it (via api), and don't know where to start checking.

Just to clarify: I need both wysiwyg content fields to include the paragraph tags via the API in both cases.

Finally, if I check the enable wpautop option in pods, it doesn't work neither.

0 Answers
Related