So, I was exploring the Gutenberg Block Editor, and as a developer, I found many aspects of the block editor to be lacking. As someone who has always created sites using ACF, the new Gutenberg editor doesn't seem like a viable option for developers and simply irritating as its not maintainbale (Patterns and custom blocks are headache). Most clients prefer not to deal with technical complexities and don't need all those controls. This led me to explore ACF Blocks. I was searching for a straightforward solution that clients could use to simply bold, italicize, and edit text freely, and this is the solution I ended up with.
Usage: To edit text, simply add the data-acf-field
attribute to the element, along with its field name. This process is illustrated below in the acf-block.php file. For instance, to edit the Hero Label field, add the attribute data-acf-field="hero_label
.