We’ve done all sorts of work with meta boxes over the past tutorials. I’ve also been playing around with various meta box iterations on my own sites. Each time I want to add something new, it takes me a couple of hours of experimenting and testing. Then I stumbled across this little gem. This could save you a tonne of time. It’s a framework for building meta boxes. Just drop in the script, and start building your boxes! Let’s take a look at how it work by rebuilding our Link format meta box from this tutorial.
Continue reading
Tag Archives: add_meta_box
Custom Meta Box Framework to Save You Time and Hassle
Link
Over the past several days I had been working on a variety of custom meta box implementations. Normal text fields, dropdowns, radio boxes. It got to be a real headache when I got to checkboxes, especially working with multiple checkboxes. After hours of work, I stumbled onto the framework at Deluxe Blog Tips. This is a great time saver. Get a head start and check it out. We’ll start working with it tomorrow by looking at installing and configuring a basic metabox.
Expanding our Back End Post Meta Boxes With Dropdowns
Yesterday we looked at expanding our knowledge of meta boxes. We added in a variety of form elements to our front end post form. What about the backend? We’ll it’s not quite as easy, but the concept remains the same. The hard part really comes from the fact that I like my selections to appear if I edit a post. From a front end post form that isn’t a concern, since I don’t allow front end editing (yet). But on the backend, if I select a checkbox, or dropdown, then next time I visit that post to edit it, I would like to see my selections saved and displayed. Let’s play around with some meta boxes.
Adding Meta Boxes to Your Post Screen
So yesterday we briefly went over custom fields in this article. Today we are going to expand on that with some meta boxes. Meta boxes are really just a fancy way to input custom fields. They are less confusing for you and anyone else using your theme, as they can prompt for exactly what is needed. These can be text boxes, text areas, check boxes, etc. It’s up to you how you implement them. I only recently started using meta boxes, but I love them. Let’s take a look at how to use them.