For those of you who don’t know, GitHub is a web-based hosting service for software development projects that use the Git revision control system. GitHub offers both paid plans for private repositories, and free accounts for open source projects.
Over the past few years Github, along with it’s 1M+ contributors has been instrumental in my ability to build websites. Over this time I lacked the knowledge and / or confidence to give back. This was until last Friday June, 27th 2014.
WebDevStudios has a public repository on Github for adding Custom Metaboxes and Fields to WordPress via themes or plugins. I first heard of this open source project via my WP518 WordPress Meetup thanks to Matthew Banks who presented on using Custom Meta Boxes and fields with WordPress (Thanks Matt, you changed my life!).
I have tried plugins like Advanced Custom fields, open sources classes like My-MetaBox-Class and also writing my own code completely. All of these methods had their pros and cons. I found myself fantasizing about writing my own class that would handle this task exactly like I wanted. When I first tried the solution from WebDevStudios, I was like whoa, someone thinks exactly like me, and yay i don’t have to write this after all.
On a recent project I was going to be making use of the file_list custom field type. This convenient little beauty effortlessly adds a field to a post type write panel that lets you upload multiple files like images. After adding the file_liist field I noticed that once added the images were not sortable by way of drag and drop. I was sure that if I added this feature it would save me time at some point later on in life. You can only imagine how excited I was that there might be a chance that I could give back to what was so freely given to me and contribute on Github for my first time.
So after a couple of hours of testing changes to the code, I was ready to fork, commit, and submit my very first pull request. The following evening I received an email on my phone informing me that my pull request had been added to the master. I had such a proud moment lol. I know it is a little on the cheesy side but anything that I want to do for long enough becomes very rewarding once it happens.
For anyone that takes advantage of WebDevStudios‘s Custom Metaboxes and Fields to WordPress (and I highly recommend that you do) give the file_list field a try, then you will be sharing an important milestone with me.