Solution

Headless WordPress Development for SaaS

Headless WordPress for mid-market B2B SaaS teams who keep WordPress as the content engine but need the marketing frontend to behave like the product app. We ship the www-plus-app subdomain split, WPGraphQL data layer, programmatic feature-by-integration pages, and a 90-day rollout, scoped at $175/hr.

The problem

SaaS teams keep WordPress for editorial fluency but ship a decoupled frontend that quietly breaks on previews, caching, and SEO parity because the build skipped the governance work no vendor puts in the pitch deck.

The approach

What we actually build

Headless WordPress development for SaaS is a vendor-evaluation question, not a what-is-headless question. The reader has already decided WordPress stays (the marketing team knows it, editorial governance runs on it) and that the frontend has to behave like the product app. What they need is the architecture, the cost, and the rollout.

Rule27 builds the reference architecture for a SaaS shop that runs WordPress at the marketing root and a custom product at a subdomain. WordPress lives on managed hosting (Kinsta, WP Engine, or self-hosted) as the content backend. The frontend, usually Next.js, deploys to Vercel, Netlify, or Cloudflare Pages. The data layer defaults to WPGraphQL for nested queries and the feature-by-integration page surface, with the REST API as the fallback for admin surfaces. The auth handoff between marketing routes and the product app is a documented contract, not an afterthought.

The parts that quietly break

Most decoupled WordPress builds fail on the same four things: preview tokens that do not resolve, cache invalidation that leaves stale pages live, SEO parity that drops canonicals and Open Graph mapping, and a publishing flow that makes marketing wait on engineering. We build all four as first-class features. Draft preview tokens resolve to the real route. Scheduled publishing triggers revalidation. Metadata, canonicals, redirects, and JSON-LD per page type (SoftwareApplication, Article, FAQPage) carry over. The marketing team schedules, previews, and ships without filing a ticket.

Web development is scoped at $175/hr against a documented plan, because a marketing-site-only build, a marketing-plus-docs build, and a full programmatic surface are genuinely different scopes. The honest version of this page tells you when not to go headless: pre-PMF teams, teams with zero JavaScript framework fluency, and teams where Webflow or Framer already solves the problem at their stage.

Deliverables

Decoupled architecture

WordPress content backend on managed hosting, Next.js frontend on Vercel, Netlify, or Cloudflare Pages, and a documented subdomain split for marketing versus product app.

WPGraphQL data layer

WPGraphQL schema with versioning discipline, REST API fallback for admin surfaces, and a decision rule for which endpoint serves which content type.

Editorial workflow

Draft preview tokens that resolve to the real route, scheduled publishing with revalidation, and rollback and content-freeze operations for the marketing team.

SEO parity layer

Metadata, canonicals, and Open Graph mapping, redirect governance for legacy URLs, and JSON-LD per page type (SoftwareApplication, Article, FAQPage).

Programmatic SEO surface

Feature-by-integration-by-use-case pages on dynamic routes, ISR tuning for large page counts, dynamic sitemap generation, and taxonomy-driven internal linking.

Core Web Vitals discipline

LCP, INP, and CLS targets shipped against, with image, font, and third-party-script control so a naive build does not regress Vitals.

Security and compliance notes

Form and gated-download PII mapping, admin access controls and audit logging, WAF and rate limiting, and data-residency options for regulated or EU SaaS.

Process
R-01

Days 1-21: content model and routing contract

We define the WordPress content model, the WPGraphQL schema, the subdomain split between the marketing root and the product app, and the redirect map that preserves legacy URLs.

R-02

Days 22-60: rendering, previews, SEO baseline

We build the Next.js frontend, wire draft preview tokens and scheduled-publish revalidation, and establish SEO parity: metadata, canonicals, Open Graph, and JSON-LD per page type on staging.

R-03

Days 61-90: caching, hardening, cutover

We tune cache invalidation, harden the admin and edge attack surface, run a launch rehearsal, and cut over with analytics and Core Web Vitals instrumented.

R-04

Programmatic surface build

We stand up the feature-by-integration-by-use-case page matrix with dynamic routes, ISR tuning for large page counts, sitemap generation, and taxonomy-driven internal linking.

R-05

Post-launch: editorial ops and care

We hand the marketing team a preview, schedule, and rollback workflow they run without engineering, and maintain the build against a documented plan at $175/hr.

Results
90 daysRollout to cutover
www + app splitReference architecture
WPGraphQL defaultData layer
$175/hrDevelopment rate
Questions

Asked often.

Should our SaaS marketing site and product app share the same domain?

The common pattern is a split: WordPress plus the marketing frontend at the root (www), and the custom product app at a subdomain (app). This keeps the editorial CMS and the product codebase independent, so marketing ships content without touching the app and engineering ships product without redeploying the marketing site. The tradeoff is an auth handoff between the two, which we document as a contract. For teams that genuinely need one surface, we scope the alternative, but the subdomain split is the default for a reason.

Do we use WPGraphQL or the WordPress REST API?

We default to WPGraphQL for SaaS content models because nested queries and the feature-by-integration page surface are cleaner to fetch and to statically generate. The REST API wins for simple content and for admin plugins that publish their own endpoints, so it stays as a fallback rather than disappearing. The practical rule we apply is WPGraphQL for the marketing surface and page rendering, REST where a plugin or admin tool already exposes a stable endpoint. We confirm the split against your content model during the first three weeks.

How long does a real headless WordPress build take for a SaaS company?

A real build runs about 90 days from kickoff to cutover: roughly three weeks on the content model and routing contract, five weeks on rendering, previews, and the SEO baseline, and four weeks on caching, hardening, and launch operations. Cheaper and faster projects usually skip preview resolution, cache invalidation, or SEO parity, which is exactly what breaks after launch. We scope against a documented plan at $175/hr so the tradeoffs are explicit before week one.

Ship your Headless WordPress Development for SaaS initiative.