Closed pjohanneson closed 10 years ago
Try a symlink
On 2014-09-02, at 11:16 PM, "Patrick Johanneson" notifications@github.com<mailto:notifications@github.com> wrote:
README.md states:
But with the new plugin-name/trunk directory structue, this doesn't work. The plugin doesn't appear in my backend plugins list. (I grabbed WP 4RC1 just in case it's supported there, but the plugin doesn't show up there either.)
Is it necessary to create a .php file in the plugin-name directory to load everything? Am I missing something?
Reply to this email directly or view it on GitHubhttps://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/issues/213.
You're right, @vodou. The README.md probably needs updating. It does clarify the directory structure further down though under the Assets heading.
Basically, the new structure is designed for plugins that are to be uploaded to the WordPress.org plugin directory.
For use in a WordPress install, you may be able to try @nathanmarks' suggestion of a symlink. Something like this:
ln -s /path/to/plugin-name/trunk /path/to/wordpress/wp-content/plugins/plugin-name
I hope that helps!
@tommcfarlin - Could you also add a version for Windows. too?
mklink /J path\to\wp-content\plugins \path\to\WordPress-Plugin-Boilerplate\plugin-name
Sure!
Although should the command be (with trunk
included) instead?
Like this:
mklink /J path\to\wp-content\plugins \path\to\WordPress-Plugin-Boilerplate\trunk\plugin-name
Yea, Sorry, I missed that.
No worries - wanted to double-check before the commit!
README.md states:
But with the new
plugin-name/trunk
directory structue, this doesn't work. The plugin doesn't appear in my backend plugins list. (I grabbed WP 4RC1 just in case it's supported there, but the plugin doesn't show up there either.)Is it necessary to create a
.php
file in theplugin-name
directory to load everything? Am I missing something?