How can I use the block editor inside a custom field?

[ad_1]

Hi everyone, first post here!

Working for a client on a wordpress site, I have a custom post type with various custom fields, one of these fields needs to have some collapsible elements (think of an accordion) that my client will be able to add/edit on its own.

The content needs to be properly formatted and edited by someone who knows no markup or styling so I was thinking of adding the block editor inside a custom field and let the end user create accordion blocks in wordpress on its own.

How would I go about this? Is this even a good idea? Accepting suggestions as I’m at a loss of what to do.

[ad_2]
1 Comment
  1. I have never found a way to do this. I am only new at this but I have looked at so many options. One option that worked at one level was adding in the classic editor on custom fields but even then the current versions of WP strip the formatting. There are filters to stop that but I havent managed to get them working either…

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer