Multiple Image Upload Metabox

I had so many requests about multiple image uploads in comments in this tutorial, so I decided to create a separate tutorial specifically about that.

Our goal is to create something like this:

Multiple image upload metabox
So we can not only select multiple images but even sort or delete them after selection.

Guys, there are actually two ways of creating a meta box like that, the first way is an easy-breezy way, but you have to install my Simple Fields plugin first, the second way – is to do everything manually from scratch. But please do not worry, no matter what method you choose, I am going to cover both of them in this tutorial.

Custom Fields in Bulk Edit

Not so many tutorials ago I published my tutorial about custom fields in quick edit. The current one is super-similar actually, but allows to add fields to Bulk actions – Edit.

Our goal here is to add a couple fields there (if you’re are looking for information about bulk actions, then it is a wrong tut for you, here is the right one).

That’s what we are going to create here:

How to add custom fields in WordPress bulk edit
We added a text field and a checkbox field.

Custom Fields in Quick Edit

In this tutorial I will show you how to add any custom fields to WordPress quick edit. As an example we are going to add a simple text field and a checkbox.

WordPress quick edit custom fields

How to Use Image Uploader in WordPress Admin Area

In this tutorial I am going to dive deep in WordPress media uploader functionality. By the way it is possible to implement not for only images but for any supported file types.

This is how it looks in WordPress admin area:

Image uploader field in WordPress option pages
Below in this tutorial I will also describe how to create a settings page like this.

Meta Boxes Tutorial

Today many of us thinking about WordPress Meta Boxes like about something obsolete. Well, you know, Gutenberg, Full Site Editing and all that stuff. But I can say, that it is not true, yet.

No matter how great Gutenberg becomes, no matter how many cool plugins appear that allow you to manage custom fields, it is always useful to know how to create a metabox from scratch. At least look at WooCommerce, the Products post type works without Gutenberg right now. And probably for your specific project you would need a post type without visual editing. That’s where meta boxes come into play.