Headless WordPress keeps the editing experience that content teams know while serving the public site from a fast, modern front end. It also moves many things WordPress used to do for you, such as previews, SEO tags, redirects and forms, onto your plate. This course builds a production-ready headless site with Next.js and is honest about where the extra complexity pays off and where a traditional theme would be simpler.
What you'll learn
- When headless WordPress is worth it, and the costs it adds for editors and developers
- Preparing WordPress as a content API: custom post types, fields and menus exposed cleanly
- Fetching content with WPGraphQL or the REST API, with typed queries and fragments
- Rendering Gutenberg block content: parsed blocks, mapping core blocks to React components and safe HTML handling
- Draft previews for editors using Next.js Draft Mode and authenticated requests
- Caching with the App Router and on-demand revalidation triggered from WordPress on publish
- SEO in a decoupled setup: titles, meta, canonical URLs, sitemaps and redirects from an SEO plugin
- Forms, comments and search without a PHP front end
- Images and media: Next.js image optimisation with WordPress uploads or a CDN
- Hosting the two halves separately, securing the WordPress back end and handling deployments
Who it's for
- WordPress agencies and developers building faster, more flexible front ends for clients
- Next.js developers asked to work with a content team that wants to keep WordPress
- Technical leads planning a migration from a WordPress theme to a decoupled stack
Prerequisites
- Solid Next.js App Router experience (see Next.js App Router in Practice)
- Working knowledge of WordPress administration and custom post types
- TypeScript and basic GraphQL
Outcomes
By the end of this course you will be able to:
- Build and deploy a headless WordPress site with a Next.js front end.
- Give editors working previews and fast publishing without full rebuilds.
- Preserve SEO and redirects through the move to a decoupled architecture.
- Advise clients honestly on whether headless suits their project.
Projects you'll build
- News and blog site: posts, categories, authors and search, with blocks rendered as React components. It practises WPGraphQL queries, block rendering and pagination.
- Editor preview and publish flow: a preview button in WordPress that opens drafts in Next.js, and a webhook that revalidates only the pages affected on publish. It practises Draft Mode, authentication and targeted revalidation.
- Marketing site migration: move a small theme-based site to headless while keeping URLs, meta data and redirects. It practises SEO preservation and migration planning.
Tools you'll use
WordPress 6.x or later, WPGraphQL and the WordPress REST API, an SEO plugin with headless support, Next.js 16, React 19, TypeScript, GraphQL Code Generator, and hosting such as Vercel for the front end and a managed WordPress host or VPS for the CMS.
Course outline
| Module | Topic |
|---|---|
| 1 | Headless architecture and when to choose it |
| 2 | Preparing WordPress: content model and plugins |
| 3 | WPGraphQL versus REST |
| 4 | Next.js routing for WordPress content |
| 5 | Rendering Gutenberg blocks in React |
| 6 | Menus, settings and global content |
| 7 | Draft previews and authentication |
| 8 | Caching and on-demand revalidation |
| 9 | SEO, sitemaps and redirects |
| 10 | Forms, search and comments |
| 11 | Media, images and performance |
| 12 | Hosting, security and launch |
FAQ
How is this different from the Strapi and Sanity course?
Headless CMS with Strapi and Sanity uses CMSs designed to be headless from the start. This course is for teams that want to keep WordPress and its editing workflow.
Is Faust.js covered?
We compare Faust.js and other helper frameworks, but build mainly with plain Next.js so you understand each piece.
Will headless make my WordPress site rank better?
Not by itself. Speed can improve, but rankings depend on content and technical SEO. Done badly, a migration can hurt rankings, which is why we cover SEO in detail.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.