ricardormz
Member
Posted 2 years ago #
Im using custom field template plugin to write some multi-line custom fields. I click publish, check out my new post, all good. But every time I edit a Custom Field it strips out the <p> tags. The weird thing is that the tags are there when im editing. Its just that when i click save and the editing field its closed, the tags are ignored (and not shown on the source code).
Any ideas?
I assume you're using editable_post_meta(). You need to download the development version (1.4a2) and wrap the call in wpautop():
echo wpautop(editable_post_meta(..., $echo = false));
ricardormz
Member
Posted 2 years ago #
Treblamah
Member
Posted 2 years ago #
I had the same problem. Now, after you click save, the text is without <p> tags, but it renders properly after reloading the page, using the fix above and the development version.