Search
Close this search box.

Best Custom Meta Box Tutorials & Resources

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

Sponsored Ad

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 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.

Sponsored Ad

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

All suggestions are anonymous.

More from our blog...

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.

Post a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stay updated with WP Mayor's newsletter showcase every week

Stay on top of every new WordPress innovation and latest launches. Receive all our fresh product reviews and expert guides directly in your inbox.

Hosting Survey 2024

Are you happy with your hosting provider or are you over-paying for too little? Have your say below!

"*" indicates required fields

What's the main reason you picked this host?*
How happy are you with your host?*

OPTIONAL: If you'd like to receive the results of this survey, please enter your details below.