Self Isolation Day 4 and 5 – Homeschool

Virus PNG Designed By nickfz from Pngtree.com. I missed the individual blog post for day 4, as I was a little bit sleepy because of the events of isolation day 3. On day 4 however, I spent most of my blogging time writing this post on WP_Query style loops for Gutenberg for my Wholesome Code blog,…

Self Isolation Day 3 – The New Normal

Virus PNG Designed By nickfz from Pngtree.com. It was another rough night last night, with the little one coughing throughout and me comforting. Dare I say it was not as bad as it was the previous night. Today he hasn’t has many coughing fits, so things are on the up, however it is inevitable that…

Self Isolation Day 2 – Flexible Working

Virus PNG Designed By nickfz from Pngtree.com. It was a rough night last night. My son was up coughing persistently most of the night, and I spent a lot of those small hours comforting him, and doing anything I could to make it a little easier on him. Due to the lack of sleep I…

Self Isolation Day 1 – Remote Working

Virus PNG Designed By nickfz from Pngtree.com. This morning my son presented himself with a temperature and a cough. Previously the UK Government had issued advice that if you have a temperature and a cough, the entire family should self isolate themselves for 14 days, because of the recent outbreak of COVID-19. Because we didn’t…

@wordpress/create-block bug hunt

Today I was writing my @wordpress/create-block series over on Wholesome Code, and during a demo I was filming relating to this, I wanted to use both a Mac and a PC to to run the script to show how easy it is to create a WordPress Block Editor (Gutenberg) block with the correct setup. I…

Create a Virtual File in WordPress with Support for WordPress Multisite

Recently I was working on a WordPress Multisite instance, and I needed each site (multilingual in this instance) to have their own unique dynamically generated sitemap. I generated these sitemaps by creating virtual files within WordPress. This article shows you how to create a virtual file, and then how to ensure that that virtual file…

Import your Existing Website into a WordPress Install via RSS

Do you want to import an existing website into WordPress? Does that existing site provide an RSS feed? Then this is the article for you. The great news is WordPress has a default importer for RSS. Simply go to Tools > Import via your WordPress dashboard. If you haven’t already you will need to install…

Converting React.createClass to React.Component

In my last article I talked about patching older versions of React to work in a modern environment. In this article I go one further and give a step by step guide to upgrading a classic React component to a modern one, by switching out the React.createClass way of doing things to the modern and…

Broken React.createClass Component? Let’s Fix It!

If you are building WordPress Gutenberg Blocks (or even if you are not) you may be trying to get a third party React Component working in your build. But if it’s an older element, specifically one that uses the deprecated React.createClass method, you may get stuck. The files that accompany this tutorial are in the…

Working with Gutenberg and the WordPress REST API

In this article I take the Select2 component that I previously added to my Gutenberg plugin, and make it dynamic by taking advantage of the WordPress REST API. This code borrows heavily from the Secure Blocks for Gutenberg plugin. In this example we will be making the ‘Select Roles’ Inspector use dynamic data from the…