- This topic has 8 replies, 2 voices, and was last updated 9 years, 4 months ago by
Sarah | @MadysonDesigns.
-
AuthorPosts
-
-
October 3, 2012 at 4:35 pm #229
Sarah | @MadysonDesignsMemberHi Steve & crew-
Is there and example of a plugin built with Piklist that I can download and pick apart to learn how it works? I remember the bike repair demo you gave at WordCamp and I think looking at how that is set up would be helpful.
Thanks!
-
October 3, 2012 at 4:41 pm #230
SteveKeymaster@madysondesigns– Good to hear from you!
There are two public plugins you can pick apart:
1) WordPress Demos: in Piklist, check out the “add-ons” folder. The Piklist Demos plugin is in there. It’s a full functioning plugin, just placed inside Piklist.2) WordPress Helpers: Our super-awesome, super-helpful, WordPress Helpers plugin. Available at WordPress.org.
Let me know if that helps.
-
October 3, 2012 at 4:49 pm #231
Sarah | @MadysonDesignsMemberAha, I didn’t poke around enough. Thanks!
I’ll keep you posted when I get in over my head 😉
-
October 4, 2012 at 3:40 pm #233
Sarah | @MadysonDesignsMemberOK, so I think I’m missing a major concept here. Where is the code in the example that tells the new Piklist Demo CPT to include all the fields that are written up in the meta-boxes folder?
In my own sample plugin, I’ve set up a CPT, but the edit page only has the right column with publish items and the taxonomies I’ve set up. The left column is blank.
-
October 4, 2012 at 5:04 pm #235
Sarah | @MadysonDesignsMemberAha, I’ve got it now- each file has post_type in the setup comment. My bad.
-
October 4, 2012 at 5:06 pm #238
SteveKeymaster@Sarah– Metaboxes, custom fields, settings, widgets, etc, all get generated by files placed in the Piklist folder structure
-
October 4, 2012 at 5:08 pm #239
Sarah | @MadysonDesignsMemberYeah, it was a derp moment on my part- I had files in that folder but I didn’t even see the option in the comment to tell each file what type of post to apply it to. All good now, thanks 🙂
Note: Might be a good thing to mention in the documentation.
-
October 5, 2012 at 10:21 am #240
-
October 5, 2012 at 2:50 pm #247
Sarah | @MadysonDesignsMemberI see it there now. The thing that caught me up is that this isn’t an optional attribute, it’s *the thing* that makes all the magic happen. I didn’t connect the dots and I’m guessing a lot of non-developers may not either.
-
-
AuthorPosts
- You must be logged in to reply to this topic.