Engineering

How our senior WordPress engineers work: modern practices, the WordPress community and how we train. Meet our partners and the 40Q Academy.

WordPress and Bootstrap logos on a purple geometric background with abstract shapes and the text “40Q” in the bottom right corner.

Engineering · Oct 14, 2022 · 5 min

Building a User-Friendly Menu in WordPress Without Relying on NavWalker

How many times have we hit our heads against the wall trying to edit a WordPress NavWalker? This class, based on the abstract Walker class, is impractical, and editing menus exactly the way you want is usually a complicated task. To avoid this, we are going to use a Composer package that allows much greater […]

Abstract blue and green background with floating circles, featuring the WordPress logo on the left and the React logo on the right, both in white.

Engineering · Jul 7, 2022 · 4 min

Building a React App Using WordPress as a Headless CMS

We are increasingly used to seeing complex, dynamic, and reactive interfaces. CMS platforms like WordPress make building these types of interfaces a bit harder with the tools they provide by default. This led to the emergence of the Headless CMS concept. In other words, using only the CMS content management tools and consuming an API […]

A green abstract background with two logos: on the left, a stylized white emblem, and on the right, the DigitalOcean logo and text in white. Floating green spheres and diagonal lines accent the design.

Engineering · Apr 30, 2022 · 3 min

How to Deploy a Roots Project to DigitalOcean

In the first post of the series, we already saw how to create a local Roots project from scratch. Another major strength of Roots, and Trellis in particular, is that it allows us to install an optimized WordPress server using just a few commands. If you want more control over the server, DigitalOcean offers droplets […]

A red background with the Docker logo (a whale carrying containers) and the Laravel logo (stylized L lines) side by side, representing Docker and Laravel technologies.

Engineering · Feb 23, 2022 · 4 min

Dockerizing Laravel. How to Create a Laravel Development Environment Using Docker

Now that you understand how Docker works and some of the tools it provides, it’s time to put everything into practice. To do that, we’re going to create a Laravel project and run it using Docker. Project analysis Whenever we start a project, we need to think about which tools we’ll initially need in order […]

A cartoon conductor with raised hands appears above the word COMPOSER on a green abstract background with floating spheres and wavy lines.

Engineering · Dec 6, 2021 · 2 min

How to Install Composer 1 and Composer 2 Side by Side on macOS

While most projects will likely use Composer 2, there are times when you need Composer 1 to make changes to an older project that was originally built using Composer 1. The most common way to handle this is by switching versions using an update. To switch to Composer 1: composer self-update --1. To switch to […]

The image features the Docker logo, a white whale carrying containers, centered on a purple and red gradient background with geometric shapes and patterns. The word docker appears below the logo in lowercase letters.

Engineering · Sep 16, 2021 · 7 min

Introduction to Docker

It works locally. It works in staging. Which version are you using? Did you install service X? These are some of the questions and comments we usually hear within the team when everyone sets up their environment independently, and as a result, we all end up with different environments. I’m sure that if you have […]