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