Pivot!

Over the years my personal website has been a showcase of my technical skills, an online CV and more recently a collection of articles and tutorials mostly about WordPress. More recently I setup Wholesome Code as a better place to to store those WordPress tutorials, however it never really felt right. This may be because…

Using the WordPress Block Editor (Gutenberg) with the REST API

In my previous article I talked about how to loop through posts and custom post types within Gutenberg. In this post I talk about receiving and using custom data within Gutenberg from WordPress REST API endpoints. In this example we are going to: Create a REST API endpoint Register a Redux like data store using…

WP_Query and the WordPress Block Editor (Gutenberg)

If you are new to writing plugins for the WordPress Block Editor (Gutenberg), you may be a little confused how to do all the things you did regularly, like grabbing posts with WP_Query. You will be very pleased to know that you can pretty much still do everything you used to do with WP_Query by…

Additional Configuration for webpack

This article builds on top of the webpack.config.js file we created in the article Extending the WordPress Create Block Script webpack Config. If you have not read that article, you may want to give it a quick read. Supporting CSS Cross Browser with Polyfills and Prefixes Before we jump in, I want to give credit…

Compiling Sass for Multiple Blocks with the webpack Config

This article shows an example of how to use the Sass files we setup in the article Extending the WordPress Create Block Script webpack Config with multiple blocks within the same plugin. If you have not read that article, please read it first. Setting up Multiple Blocks As I mentioned in the previous article, adding…

Extending the WordPress Create Block Script webpack Config

With official support from the WordPress Editor (Gutenberg) team, you can now quickly get up and running with a block plugin using the WordPress Create Block Script (@wordpress/create-block npm package). In this article we explore how you can add a custom webpack.config to expand the wp-scripts compiling functionality of the block generated by the block.…

An Overview of the WordPress Create Block Script

The official WordPress Editor (Gutenberg) team have provided a neat little script for you to create a block plugin with their @wordpress/create-block npm script. This article gives an overview of the WordPress Create Block Script, along with details of what it outputs. Running the Create Block Script The official documentation gives you a few different…

What do Bloggers think about the WordPress Block Editor (Gutenberg)?

We asked a group of bloggers what they think about WordPress Gutenberg (also known as the block editor) and how it’s changed their blogging game for the good, the bad and the ugly… Blogging has come a long way since Justin Hall’s ‘personal webpage’ on links.net in 1994.  It’s no longer considered just a hobby, as…

Staying Happy and Healthy at Work

How can you stay fit and healthy when you have a million and one priorities all fighting for your attention? Your boss, your family, your friends and other commitments need your time, so how can you possibly make time for anything else? You know you should exercise and eat well for your overall health and…

Sprint Kickoff

The Sprint Kickoff is at the start of every Sprint Cycle. Its aim is to set out the priorities of what should be delivered within the length of the upcoming sprint (we will assume this is the next 10 working days, a sprint is typically 1-4 weeks long.). At the end of the Sprint Kickoff,…