WordPress

How to Clone a Subsite in WordPress Multisite

In this tutorial, I want to dive deep into the steps you need to take if you want to clone a specific subsite of your WordPress Multisite network. The process is not very difficult, but there are some moments you will need to keep in mind.

We will also take a look at two different approaches – I will show you how to do it with the help of the plugin and also programmatically.

Let’s jump into it.

How to Create Folders in Your WordPress Media Library

I suppose one of the coolest things about WordPress is that it is quite simple by itself, out of the box, but it can be easily extended to almost any functionality you may need with the help of plugins and code snippets.

The same goes for the media library folders. Can you create folders in your WordPress media library? Out of the box – nope. But if you install a plugin for that – yes, of course.

Specifically, in this tutorial, I will show you how to create folders in the WordPress media library with my Simple Media Library Folders plugin.

How to Create Media Library Folders Without a Plugin

In this step-by-step tutorial, I’d like to guide you on how to create media library folders for your WordPress website, and we will not use any plugins for that.

The whole idea of publishing this guide came to me because of the questions of clients who are using my shared media library plugin for WordPress Multisite. Specifically, they were asking whether or not it supports third-party plugins for media library folders.

The thing is that there are no official WordPress plugins for creating media library folders. In another case, of course, I had added their support in the multisite shared media library.

First of all, I will show you how you can add a folder selection when uploading media files to the WordPress media library:

WordPress media library folders without plugins

Second, we will create a filter by a folder in the media library itself:

Filter media by folder in the WordPress media library.

If you’re not into coding, please take a look at my Simple Media Library Folders plugin.

The folders will look like this in that case:

Simple media library folders plugin for WordPress

I just wanted to show you that this option exists for you. From now on, we will only be talking about WordPress media library folders without plugins at all.

Dashboard Widgets in WordPress

In this tutorial we’re going to discuss everything related to WordPress dashboard widgets – I will show you how to remove default ones, and how to create custom dashboard widgets, plus, we will learn how to add some setting fields to that widget.

As usual, I decided to uncover this topic with you, guys, and to share my experience, because some of my plugins have their custom dashboard widgets, for example – Multisite Indexer and Multisite Order Sync for WooCommerce.

Tax_Query of WP_Query

In this guide, I would like to talk in-depth about using the tax_query parameter when creating custom loops with WP_Query, query_posts, get_posts or even when filtering existing loops with the pre_get_posts filter hook.

This one will be super-similar to a guide about Meta_Query, but, I guess, easier.

How to Use Cron in WordPress (WP Cron and Action Scheduler)

In this tutorial, I will show you how you can use both WP Cron and Action Scheduler when developing plugins for WordPress.

Block Bindings API Explained

I noticed that there is not so much interest in the Block Bindings API, comparing, for example, to the Interactivity API.

However, the Block Bindings API is quite interesting indeed because it allows us to connect a Gutenberg block attribute value to a custom field or pretty much any other custom source (it even could be a REST API response from a completely other site).

In this tutorial, I will show you a couple of examples of the Block Bindings API in action.