A note from the author of PressGang

Fifteen years of production WordPress, consolidated into a parent theme framework. Why I built it, what shaped it, and where it stands today.

PressGang is a parent theme framework built on Timber and Twig. It keeps WordPress’s native theme model, adds namespaced PHP and explicit configuration, and has run in production across hundreds of agency projects.

I’m a senior freelance web developer based in Bristol, UK, and the author of PressGang. For over 20 years, I’ve worked with businesses and agencies to build websites, ecommerce stores and custom web applications.

A labour of love

PressGang is a labour of love more than fifteen years in the making. It grew out of a simple goal: to make WordPress development more enjoyable, more maintainable, and faster to build and prototype with — without fighting the platform itself.

What started as a personal toolkit to consolidate reusable patterns across client projects gradually evolved into something more formal. Much of that work happened in delivery-focused agency environments, where clarity, consistency, and clean handover genuinely matter.

“From early on, PressGang stood on the shoulders of giants — particularly Timber and Twig, whose separation of logic from presentation reshaped how I think themes should be structured.”

Influences and approach

PressGang doesn’t try to turn WordPress into Laravel, nor does it attempt to reshape WordPress into something it isn’t. Instead, it borrows what translates well:

  • Namespaced, PSR-4 autoloaded PHP
  • Explicit configuration over hidden convention
  • Clear architectural boundaries between controllers, context and templates

All while working entirely within WordPress’s native theme and runtime model, not around it. There’s no attempt to hide WordPress or abstract it beyond recognition — the goal is to work with WordPress, in a way that feels modern, explicit and maintainable.

PressGang targets WordPress 6.4+ and PHP 8.1+. Earlier stacks will run the 2.x branch, which is maintained for security fixes only.

Where it is today

Today, PressGang is a modern WordPress parent theme framework designed for bespoke, long-lived professional websites. Controllers assemble context and pass it cleanly to Twig via Timber; child themes extend through documented hooks rather than copied templates. A controller is ordinary PHP — register it with add_filter() and it resolves by convention.

A controller in practice

<?php
namespace Theme\Controllers;
use PressGang\Controllers\Controller;
use PressGang\Quartermaster\Query;
class ArchiveController extends Controller {
    public function add_to_context( array $context ): array {
        $context['posts'] = Query::posts()
            ->type( 'article' )
            ->taxonomy( 'topic', 'open-source' )
            ->perPage( 12 )
            ->get();
        return $context;
    }
}

Quartermaster returns plain WordPress args — no ORM, no query abstraction to learn.

Scaffold the whole stack in one command with Capstan: wp capstan new my-site --dry-run

Overriding a parent template wholesale breaks the upgrade path. Extend the block you need and leave the rest inherited.

Real-world use

PressGang has been shaped almost entirely by real production work. It’s been used across hundreds of projects at several agencies I’ve worked with — many of whom adopted it and continued using it long after I’d moved on. It has powered themes for global organisations, large brands, ecommerce stores, SMEs and grassroots projects.

A typical migration runs in three passes:

  1. Audit the legacy theme — templates, queries, and anything writing directly to the database.
  2. Stand up the child theme and move templates to Twig one route at a time.
  3. Retire the legacy theme once parity is confirmed under real traffic.

Long-term, real-world usage has been the framework’s strongest form of validation — not feature count.

Freelance WordPress development

Building on WordPress for the long term?

Bespoke themes, plugins and integrations, built to be maintained by whoever inherits them.