Skip to content

When using a WYSIWYG field in ACF blocks, it doesn't auto add P tags #47

@FalkoJoseph

Description

@FalkoJoseph

Falko 2023-12-18 at 21 59 51@2x

I've uploaded a screenshot above. When using a WYSIWIG field in ACF blocks, it doesn't seem to add P tags automatically after you press a newline.

I think WordPress handles auto-adding paragraphs in PHP by using a WordPress filter.

Would it be possible to support that? I think a lot of people use the WYSIWYG field inside ACF blocks to insert long text. But it's difficult to format in a front-end when there are no paragraphs.

I think the filter is called wpautop. See here: https://developer.wordpress.org/reference/functions/wpautop/

Other than that nice work with this plugin, this should be in core for sure. You're helping out a lot of folks who are using headless WordPress with Gutenberg as the editor. 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions