Create gutenberg widget
-
I have several plugins that have legacy widgets, and about 11K sites using them.
I can create a php widget in a couple of hundred lines of php code which are easy to understand and copy.
I have spent many many many many many hours trying to work out how to transition these to blocks, but as someone who knows php, css and a bit of js, the developer manuals are just totally confusing.
I know nothing of nvm, docker desktop, visual studio, babeljs.io Ubuntu, or the other many tools I seem to need to create something that surely is some files with links. I use Notepad++, and tortoise svn, and have little appetite at 65 to start learning a whole new toolset.
None of the ‘examples’ I have found tells me what to actually do, they all just list lots of instructions with no ‘completed’ solution that I can use to create my own.
My widgets typically have settings which are checkboxes or text, and then use data from the database in a wp-loop to produce the output.
I fully understand that FSE is the way that WordPress wants to go, and would dearly love to create blocks, given that WP won’t allow legacy widgets in FSE themes.
Someone somewhere must have a worked example of a plugin that creates a simple block that has some parameters, and runs some php code to do the output. That’s all I need, I can flex from that to create the blocks I need.
Please if you know of this, give me a link.
Otherwise my legacy widgets like I guess so many other plugin authors will remain of use only to those who stick with legacy themes, and that cannot be good for WordPress.
- The topic ‘Create gutenberg widget’ is closed to new replies.