Tagged: plugin, Plugin Type
- This topic has 4 replies, 4 voices, and was last updated 6 years, 8 months ago by
Steve.
-
AuthorPosts
-
-
August 2, 2013 at 8:37 am #946
chrisbenMemberI create a simple plugin with this structure:
plugins/myplugin/ myplugin.php parts/meta-boxes/ mybox.phpThose files are pretty simple, I define one custom post type and mybox.php adds one meta box with a simple field in there.
The file mybox.php never gets loaded despite several hours of tinkering and re-reading the documentation, the content of the file is correct and should load on the same post-type as the one defined in myplugin.php.BUT when i move my meta-boxes folder into the main piklist plugin parts/ folder (plugins/piklist/parts), mybox.php gets read and I can see my meta box in my custom post type (=> the content of mybox.php is not the problem).
It looks like piklist doesn’t access the “parts” folder of my plugin and instead looks into its own folder.
I’ve triple checked the folder permissions for everything : the server is able to access the subfolders of my plugin.
My web server is apache2 on Linux.I’ve had the same problem with stable piklist (0.7) and latest beta 2 release.
-
August 2, 2013 at 4:15 pm #950
KevinKeymasterMake sure you put this in the comment block of your plugin:
Plugin Type: Piklist
Thanks,
Kevin
-
August 5, 2013 at 4:17 am #955
chrisbenMemberIt worked!! Thanks a lot Kevin.
-
June 10, 2015 at 9:31 am #3849
-
June 10, 2015 at 11:00 am #3852
SteveKeymaster@graup– Thanks for letting us know. We have this tutorial, but obviously it’s not working. We are in the process of redoing our user guide and will take this into consideration.
-
-
AuthorPosts
- The topic ‘Fail to create custom meta boxes for simple plugin’ is closed to new replies.