How to Add Meta Fields when Creating a Post with REST API
This tutorial is a small addition to my another tutorial about creating posts with REST API in WordPress, because there I didn’t mention how to work with metadata and what moments you have to keep in mind.
As a result of this tutorial we will just create a simple draft post with a couple custom fields in it.
Upload Featured Image to a Post with REST API
Recently I have updated the tutorial about creating a post with WordPress REST API but I didn’t cover a topic of featured images there.
It is not that simple actually, but I will make it simple for you.
Code Snippets Tutorial (Where to Insert the Code)
I have a plenty of code tutorials on my blog but almost in none of them I describe in details where to insert the code in WordPress. It is because I write mostly for developers who already know something so I usually skip the basic part.
But I came to a decision that it would be super-useful to have a tutorial like this on my blog.
So here we are – right now I am going to show you 3 ways how you can use code snippets on your WordPress or WooCommerce website.
Repeater Field in Gutenberg Plugin Sidebars
I already have a plenty of tutorials on my blog where we created different kind of fields for Gutenberg sidebars, for example an image field, a gallery field, a checklist and even a dropdown with posts.
There is also my Simple Fields plugin for those of you guys who don’t want to mess up with JSX and React and prefer to use simple PHP code snippets instead.
But now let’s talk about creating a repeater field. First things first – a screenshot:

How to Validate Payment Gateway Settings Fields
It seems like my complete payment gateway tutorial is not that complete after all. I didn’t mention there how you can validate payment gateway admin options.
For example let’s assume that we have to validate a USDT address of a TRON network. Here is how it should work:

Let’s assume that we’ve already added a field for a USDT address inside init_form_fields()
method. Just like that:
If-Else and Switch in React JSX
In this small tutorial I would like to describe you 4 ways of performing conditional rendering in JSX. Maybe you already know some of them, maybe not, anyway hope it will be useful for you.
How to Upload Multiple Images with <MediaUpload>
Now so long ago I published a tutorial about creating a custom image control component for plugin sidebars. The very first question in the comments was “How to select multiple files”?
So let’s dive into it now.
First things first let me show you what we are going to create here.
