Including it as a zip
altsanz opened this issue · 3 comments
Hi! Good work with the generator!
I just have a question: I created a small base plugin, but when I try to install the zipped folder Wordpress returns an error, saying that no plugin has been found.
Which is the procedure to install the plugin?
@altsanz, what version of Wordpress are you using? I have tested with latest version, and I can install plugins no problem. Make sure you follow the instructions, and that you have the latest version of yo
installed.
To make sure, simply run:
npm install -g yo
Then
npm install -g generator-wordpress-plugin
Then:
yo wordpress-plugin
Once you generate your plugin, use any archiving tool to zip up the generated plugin.
(Maybe you forgot to zip up the plugin first?)
Hi, I didn't forget to make the zip. I can't reproduce it for now but the issue was that one of the root php files was not generated, so i wrote it manually.