Closed Pezzab closed 1 year ago
In case this is relevant I see that autop is mentioned in the list of updated packages in the WP 6.3 Changelog:
And in the list of files revised:
Hi @Pezzab
Using get_post_meta
will not parse the value through Pods by default anymore. Please go to Pods > Settings and enable "Override WP Metadata values".
Edit: If you want this setting untouched you can also wrap get_post_meta()
in wpautop()
and it will function the same!
Alternatively you could use Pods functions: https://docs.pods.io/code/field-functions/pods_field_display/
Cheers, Jory
Hi @JoryHogeveen - the issue appears to have resolved itself with the latest WP update, though "Enable wpautop" needs to be unchecked:
I didn't need to enable "Override WP Metadata values".
Hi @Pezzab
In that case I'd have to see your template code to know more of the actual cause of this issue.
My comment is still valid, but for example; if your template runs it through a filter then it could be that since the update that filter also has wpautop
hooked so there is no need to wrap it anymore.
Anyhow, glad it's solved since the update! Don't hesitate to contact us again if you need help with Pods.
Cheers, Jory
Description
I have a site running WP 6.2.2. When saving fields in custom post types with line breaks using Tiny MCE WYSIWYG
<p></p>
tags are automatically added when there are line breaks - this works even with the "Enable wpautop" option unchecked in the field settings.With WP 6.3 installed and Tiny MCE WSIWYG enabled wpautop does not add paragraph tags, even with "Enable wpautop" enabled.
I tried using Quill Editor which does add the paragraph tags but I find it suboptimal and would prefer a familiar interface for exsting site users.
In case this is relevant the field was initially set to Plain Paragraph text before switching subsequently to WYSIWYG.
Version
2.9.19
Testing Instructions
1: Update WordPress to 6.3 2: Create a new custom post type using Pods 2.9.19 with a Tiny MCE WYSIWYG field, ensure it can be output to the front end with a theme template (via
get_post_meta
). Leave "Enable wpautop" unchecked. 3: Create a test post with text in that field that includes line breaks and save. 4: View post to see if line breaks appear 5: Edit Pods field type so "Enable wpautop" is checked 6: Create new post and repeat 1 tp 4Screenshots / Screencast
Possible Workaround
No response
Site Health Information
Pods Package