I am currently in the process of creating a Wordpress plugin that allows extra block types to be added for creating posts. I have successfully created a wordpress block type but it doesn't work when I add two.
The following code is in a JS file.
When I add two block types, Wordpress's backend editor doesn't even recognise the first block. Removing the second block makes the first block type register and work. To those who are experienced in Wordpress plugin creation, what error am I making?
I am currently in the process of creating a Wordpress plugin that allows extra block types to be added for creating posts. I have successfully created a wordpress block type but it doesn't work when I add two.
The following code is in a JS file.
https://pastebin/5GMp3aa1
When I add two block types, Wordpress's backend editor doesn't even recognise the first block. Removing the second block makes the first block type register and work. To those who are experienced in Wordpress plugin creation, what error am I making?
To create a new block make the second block contain actual working code! I was silly and there was some syntax errors in the second method.
MORE CODE HERE
seems important here. Can you include the actual code that’s causing the problem? – Jacob Peattie Commented Feb 26, 2019 at 15:06