Gutenberg custom field type
- This topic has 11 replies, 7 voices, and was last updated 2 months ago by
Derin Tolu.
-
AuthorPosts
-
September 27, 2023 at 10:49 PM #43364
[email protected]
ParticipantIs there any way to have a separate instance of Gutenberg created as a custom field?
Just like we can pickWYSIWYG Editor
as a field type, it would be an actual Gutenberg instance where blocks can be used as they would on the main content area.September 28, 2023 at 2:54 AM #43367brandonjp
ParticipantI don't have an answer for you, but that's an interesting idea. If so, I'm guessing it would have to be the Isolated Editor rather than the full Block Editor. But I like the idea and I hope it's possible!
September 28, 2023 at 2:59 PM #43369Peter
ModeratorHello,
Do you mean to save the field value in the custom block as the post meta? If yes, please set the parameter
storage_type
topost_meta
'storage_type' => 'post_meta'
Follow the documentation https://docs.metabox.io/extensions/mb-blocks/#storage_type
September 28, 2023 at 6:09 PM #43372[email protected]
Participant@peter what I meant is an actual Block Editor instance as a custom field.
Right now, the Block editor is only allowed on the main post content area which is very limiting.
This prevents relevant portions of a page that outputs the custom field's content limited at best to text and images and videos using the WYSIWYG editor as a field type, or high maintenance using the Custom HTML field type.
Let's say that I want to use a fancy price table with before and after comparison element separated from the main content. That would translate to a group of fields + building the markup/CSS/JS, manually maintain and customize it over time.
If there was a Block editor instance, I can just drag and drop the relevant block elements from some blocks plugins, and change their content.
September 30, 2023 at 6:25 PM #43392Peter
ModeratorHello,
Thanks for your details. I will forward your feedback to the development team to consider supporting a custom field type Block editor in future updates.
October 1, 2023 at 3:10 AM #43403[email protected]
ParticipantThank you @peter.
I hope the product/dev team will see value on it 🙂October 4, 2023 at 7:52 PM #43421Blue li
ParticipantI am also looking forward to this! Have seen searching for a solution a year -_-
February 15, 2024 at 5:57 PM #44564Lukáš
ParticipantIt would be nice to have this field type.
July 8, 2024 at 12:30 AM #45849[email protected]
ParticipantHere is a good example implemented recently on Greenshift, where you can use blocks inside their Table elements cells - https://youtu.be/B3I6qQ9LciM?t=53
July 20, 2024 at 2:54 AM #45951Dave
ParticipantI thought of this a while ago but I don't think its possible within WordPress, eg. Trouble. I suspect greenshift may be using innerblocks rather than separate editor right?
March 28, 2025 at 1:38 PM #47947Derin Tolu
ParticipantACF extended pro implemented the Automattic isolated block editor package. Its the same field used in BBpress on wordpress.org support forums
March 28, 2025 at 1:42 PM #47948 -
AuthorPosts
- You must be logged in to reply to this topic.