Best Custom Meta Box Tutorials & Resources

If you purchase through a link on our site, we may earn a commission. Learn more.

Here's some of the best tutorials and resources for building custom meta boxes that I've come across in the past two years. I'm posting them here to have a handy reference for all those building plugins and themes.
Table of Contents
WP Engine High Performance Hosting
BionicWP Hosting

Here’s some of the best tutorials and resources for building custom meta boxes that I’ve come across in the past two years. I’m posting them here to have a handy reference for all those building plugins and themes.

Tutorials

GitHub Repositories

There are some excellent GitHub repositories, which are mostly more advanced than the tutorials mentioned above, but can give you some extended functionality and offer more reusability potential.

  • Jared Athison’s Custom Meta Boxes and Fields class
    Featuring contributions by Bill Erickson and Andrew Norcross (two top WP developers), this is one of the most updated classes you can use. It acts like a framework for building meta boxes in your theme or plugin.
  • My WordPress Meta Box class by Bainternet
    Very well supported class, updated frequently, a good reference point and can be also implemented into your theme and plugin.
  • Reusable Custom WordPress Meta Boxes by Tammy Hart
    Originally a tutorial for Tutsplus, the code has since been improved and cleaned up.

I have also referred to this tutorial on Tutsplus in the past, but I wouldn’t recommend it, as it is riddled with some security issues and other bugs. Refer to the improved class by the same author above (Reusable Custom WP Meta Boxes).

You can also take a look at the code of some major plugins that do things right, such as Easy Digital Downloads. Digging into code is often one of the best ways of discovering how to do things, as the code of popular plugins is likely to be frequently updated and of high quality.

If you enjoyed this post, make sure to subscribe to WP Mayor’s RSS feed.

Jean Galea

Jean Galea is an investor, entrepreneur, and blogger. He is the founder of WP Mayor, the plugins WP RSS Aggregator and Spotlight, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

Discover more from our archives ↓

Popular articles ↓

2 Responses

  1. Thanks for this article Jean,

    I have bookmarked it and I will evaluate given resources to find out which one can work better for me.

    Just to share my experience, I have used Meta box Plugin by Rilwis in my projects ( by embedding it as part of theme ) and found it working reasonably good.

    Let me know if you tried that and what you think about it OR any better resource than Rilwis meta box plugin.

    Thanks again.

  2. I use Jared Athison’s Custom Meta Boxes and Fields class all the time. The fact that it was built by some of the best WP Developers around made me try it and I haven’t looked back.

    The code is solid and setting it up is crazy easy. Drop it in your plugin, create some boxes, and you’re good to go.

Share Your Thoughts

Your email address will not be published. Required fields are marked *

Claim Your Free Website Tip 👇

Leave your name, email and website URL below to receive one actionable improvement tip tailored for your website within the next 24 hours.

"They identified areas for improvement that we had not previously considered." - Elliot

By providing your information, you'll also be subscribing to our weekly newsletter packed with exclusive content and insights. You can unsubscribe at any time with just one click.