Would you like to automate the setup of your homepage and blog page in WordPress using WP-CLI? You can easily achieve this with the following commands: This solution has been tested in WordPress v6.7.1 and WP-CLI 2.10.0. After running these commands, your settings page will reflect the following changes:
Tag: WordPress
Why S3-Uploads by Human Made Is My Go-To Choice
What is a CDN? A CDN, or Content Delivery Network, is a global service provided by major cloud providers that efficiently delivers files and other content to users worldwide. It distributes your content across multiple servers located around the globe, ensuring fast and reliable access for visitors wherever they are. Why do we use CDN? […]
Ditch the Overkill: How to Send WordPress Emails Using PHPMailer and Amazon SES
The WordPress ecosystem now hosts a range of fully developed email solutions provided by numerous plugins. Two of the most prominent examples are WP Mail SMTP and Easy WP SMTP. While I have no particular objections to these plugins, I believe that for experienced developers, they can be overly complex. Most of their features extend […]
How to Implement Server-Side Rendering for WordPress Blocks?
Recently, I was tasked with implementing server-side rendering for a WordPress block created with @wordpress/create-block package. Specifically, I developed a block that displays a page list based on a user-selected menu. The block’s functionality is straightforward: in the back-end, the user selects a menu from a list of available menus, and on the front-end, the […]