Headless WordPress: Pros, Cons, Frameworks, and a Next.js Setup Guide

Headless WordPress means WordPress only manages content (the admin, editor, database and media library) while a separate frontend, usually Next.js or Astro, fetches that content through the REST API or WPGraphQL and renders the public site. Editors keep the WordPress dashboard they know; developers own the frontend completely.

It is worth it when the same content feeds several frontends, when the site behaves more like an app than a blog, or when your team already works in React or Astro. It is usually not worth it for a standard blog or business site, where a cached WordPress theme gets similar speed with one stack instead of two. The rest of this guide covers the trade-offs, the API choice (with real response sizes measured on WordPress 7.1.4), the best front-end frameworks, and a working Next.js App Router setup including previews and cache revalidation.

Coral red SmartWP brand graphic with bold white headline reading Headless WordPress, with a line-art icon showing a CMS database box and a browser window connected by an arrow representing the API data flow
Key Takeaways
  • Headless WordPress keeps the WordPress admin and database but hands page rendering to a separate frontend (usually Next.js or Astro) that reads content over the REST API or WPGraphQL.
  • It pays off for multi-channel content, app-like frontends, and teams already fluent in React or Astro. For a normal blog or business site, cached traditional WordPress is less work for similar speed.
  • The REST API can be lean: _fields cut a 10-post response on this site from 386 KB to 1.9 KB. WPGraphQL (v2.26.2, announced as a WordPress.org canonical plugin in October 2024) wins when one page needs nested data.
  • Faust.js still works for the Next.js Pages Router, but its App Router support was deprecated in February 2025. For App Router builds, plan on fetch plus Draft Mode plus a revalidation webhook.
  • Budget for previews, cache invalidation, forms, and SEO metadata. Those are the parts the WordPress theme used to handle for free.

What Headless WordPress Actually Means

A traditional WordPress site is one PHP application. A visitor requests a URL, PHP queries the database, the active theme renders HTML, and WordPress sends it back. The “head” (theme and rendering) and the “body” (content, database, admin) live in the same place.

Headless WordPress cuts the head off. WordPress still runs on a server with the same admin, posts, pages, users and backend plugins, but nobody visits its theme. Instead it exposes content as JSON at /wp-json/ (built into core since WordPress 4.7) or at /graphql with the WPGraphQL plugin. A separate application fetches that JSON and renders the pages visitors see.

In practice, editors log into cms.example.com/wp-admin and write posts exactly as before. The public site at example.com is a Next.js or Astro app on Vercel, Netlify or Cloudflare that requests cms.example.com/wp-json/wp/v2/posts when it builds or renders a page.

Is WordPress a headless CMS?

Not by default, but it can be used as one with no extra software. Out of the box WordPress is a “coupled” CMS: it stores content and renders it with a theme. Because the REST API ships in core, every WordPress site can already serve its content to an outside frontend. WPGraphQL adds a GraphQL API on top if you want one.

What “nearly headless” WordPress means

“Nearly headless” (or hybrid) usually describes a middle path: WordPress keeps rendering most pages with a normal theme, while specific sections, such as an app-like dashboard, a search interface or a product configurator, are separate JavaScript apps that pull data from the same API. You keep plugins, previews and SEO tooling for the bulk of the site and only pay the headless costs where you actually need a custom frontend. For many teams this is the better first step than a full rebuild.

Headless WordPress Pros and Cons

AreaHeadless WordPressTraditional WordPress
Frontend controlAny framework, any design system, full control of markup and JavaScriptTheme, block theme or page builder, within WordPress conventions
SpeedStatic or edge-cached pages are fast by defaultFast with page caching and a CDN, slow without them
PluginsBackend plugins work (ACF, SEO metadata, roles, security). Frontend plugins (forms, sliders, share buttons, comments UI) must be rebuiltEverything works
Editor previewHas to be built (Draft Mode route, preview filter)Built in
PublishingNeeds a webhook or revalidation so edits show upInstant
Security surfaceAdmin can sit on a separate, locked-down hostAdmin and public site share one server
Multi-channelOne content source for web, apps, kiosks, other sitesPossible through the API, but the theme is the main output
Running costTwo hosts, two deploys, more developer timeOne host
Skills neededJavaScript framework plus WordPressWordPress, PHP optional
Headless WordPress compared with a traditional theme-rendered site.

When Headless WordPress Is NOT Worth It

Skip headless, or start with the hybrid approach above, if any of these describe your site:

  • Your site depends on frontend plugins: Gravity Forms or WPForms, WooCommerce templates, comment plugins, membership plugins, page builders like Elementor. Each one has to be replaced with frontend code or a third-party service.
  • Speed is the only reason. A well-cached WordPress site behind a CDN already serves pages without running PHP on most requests. Our guide on how to speed up WordPress covers the cheaper path.
  • Nobody on the team will own the frontend long term. A Next.js app needs dependency updates, framework upgrades and its own monitoring, on top of WordPress core and plugin updates.
  • Editors rely on the Site Editor, block themes or live visual editing. Those are theme features; headless removes the theme.
  • The site is a small blog or brochure site with a few pages and one editor.

There is also a third option besides “traditional” and “headless”: leave WordPress entirely. titlecapitalize.com, a tool site I co-run, did that in October 2026. It moved to Astro on Cloudflare Workers, and its content now lives in a JSON data file in the code repository instead of in any CMS. If a site has few editors and changes rarely, a static site generator with content in the repo can be simpler than running WordPress as a backend.

REST API vs WPGraphQL for Headless WordPress

The first technical decision is how the frontend talks to WordPress. Both options are free and both are production-ready.

The WordPress REST API (built into core)

The REST API has been in core since WordPress 4.7 (December 2016), so every site already exposes it at /wp-json/. Posts, pages, custom post types registered with show_in_rest, taxonomies, users and media are all there. Our WordPress REST API guide covers endpoints, parameters and errors in depth.

The common complaint is over-fetching, and it is real if you ignore two built-in parameters. _fields trims the response to the keys you list, and _embed pulls linked resources such as the author and terms into the same response. The numbers below are actual response sizes from requests run on November 8, 2026.

RequestSiteResponse size
/wp/v2/posts?per_page=10smartwp.com (live)386,428 bytes
/wp/v2/posts?per_page=10&_fields=id,slug,title,linksmartwp.com (live)1,858 bytes
/wp/v2/posts?per_page=10&_embedsmartwp.com (live)607,482 bytes
One post with author name and category names, REST _embedFresh WordPress 7.1.44,416 bytes
Same data, REST _fields plus _embed=author,wp:termFresh WordPress 7.1.42,382 bytes
Same data, one WPGraphQL queryFresh WordPress 7.1.4 + WPGraphQL 2.26.2345 bytes
Measured with curl on November 8, 2026. smartwp.com responses pass through Cloudflare; the WordPress 7.1.4 site was a local WordPress Playground install.

So the REST API is not inherently bloated; the default response is. Always request _fields in production code. Where REST still loses is nested data: a page that needs a post, its author, its categories, its ACF fields and three related posts means either several requests or a custom endpoint.

WPGraphQL (plugin)

WPGraphQL adds a single GraphQL endpoint at /graphql. You write one query shaped like your page, and the response contains exactly those fields. Current status, checked against the WordPress.org plugin API on November 8, 2026: version 2.26.2, updated November 5, 2026, 30,000+ active installs, tested up to WordPress 7.0.8.

Its future is also less of a worry than it used to be. In October 2024 WordPress.org announced WPGraphQL as a canonical plugin, and its creator Jason Bahl moved to Automattic to keep working on it. The plugin page still describes the canonical move as in progress, so treat it as a community-maintained plugin with strong backing rather than part of core. Companion plugins from the same maintainer are current too: WPGraphQL for ACF (3.2.0) and WPGraphQL Smart Cache (2.4.0), which adds caching for GraphQL responses.

A typical page query looks like this:

query PostPage($slug: ID!) {
  post(id: $slug, idType: SLUG) {
    title
    date
    content
    author { node { name } }
    categories { nodes { name slug } }
  }
}

One gotcha we hit in testing: an unauthenticated REST request for drafts fails loudly (400 rest_invalid_param, “Status is forbidden.”), while the equivalent WPGraphQL query for draft posts returns an empty list with no error. If previews show nothing, check authentication before you debug your components.

Which one to pick

SituationPick
Simple content model: posts, pages, a few custom fieldsREST API with _fields
You want zero extra plugins on the WordPress sideREST API
Pages need nested data (post + author + terms + ACF + related posts)WPGraphQL
Typed queries and generated TypeScript typesWPGraphQL
You plan to use Faust.js or WP Engine’s Headless Platform blueprintsWPGraphQL (both are built around it)
Frontend writes data back (forms, comments, user accounts)Either; REST has more examples
REST API or WPGraphQL by project type.

Best Front-End Framework for Headless WordPress

There is no single best framework, but the shortlist is short. Versions below are the latest npm releases as of November 8, 2026.

FrameworkLatest versionBest forWordPress tooling
Next.js16.4.5Content sites that also need app features, logged-in areas, or per-page revalidationDraft Mode, tag revalidation, Faust.js (Pages Router), WP Engine HWP Toolkit example
Astro7.4.7Content-heavy blogs and marketing sites that should ship little JavaScriptFetch from REST or GraphQL in page frontmatter; HWP Toolkit example
Nuxt4.6.4Vue teamsHWP Toolkit example
SvelteKit3.1.1Svelte teams who want small bundlesHWP Toolkit example
Gatsby5.16.1 (released February 2026)Existing Gatsby sitesgatsby-source-wordpress; not a good pick for new projects given the slow release pace
Framework options for a headless WordPress frontend. Versions from the npm registry.

If the site is mostly articles, Astro is the simplest choice: pages are static HTML by default and you only add JavaScript where something is interactive. If you need logged-in users, previews tied to the WordPress Preview button, or a mix of static and dynamic routes, Next.js has the most WordPress-specific examples. Pick the one your team already knows; you will write far more frontend code than WordPress code.

WP Engine’s open-source Headless WordPress Toolkit (HWP Toolkit) has runnable example projects for Next.js, Astro, Nuxt, SvelteKit and Angular, plus WordPress plugins such as HWP Previews for configurable preview URLs. WP Engine introduced it in the same February 2025 post that changed Faust.js’s direction (more on that below).

Next.js App Router With WordPress: The Current Pattern

Most older headless WordPress tutorials target the Next.js Pages Router. On the App Router (Next.js 13 and later, now on 16.4.5) the pattern is simpler and needs no WordPress-specific framework: server components fetch from WordPress, fetches are tagged for caching, a webhook revalidates tags when content changes, and Draft Mode handles previews.

1. Fetch content in a server component

Keep the WordPress URL and any credentials in server-only environment variables. Variables without the NEXT_PUBLIC_ prefix never reach the browser bundle.

// lib/wordpress.ts
const WP_URL = process.env.WP_URL; // e.g. https://cms.example.com (server-only, no NEXT_PUBLIC_ prefix)

export async function getPostBySlug(slug: string) {
  const fields = 'id,slug,title,content,excerpt,yoast_head_json';
  const res = await fetch(
    `${WP_URL}/wp-json/wp/v2/posts?slug=${encodeURIComponent(slug)}&_fields=${fields}`,
    { cache: 'force-cache', next: { tags: [`wp-post-${slug}`] } }
  );
  if (!res.ok) throw new Error(`WordPress returned ${res.status}`);
  const posts = await res.json();
  return posts[0] ?? null;
}
// app/[slug]/page.tsx (matches the Post name permalink structure: /my-post/)
import { notFound } from 'next/navigation';
import { getPostBySlug } from '@/lib/wordpress';

export default async function PostPage({ params }: { params: Promise<{ slug: string }> }) {
  const { slug } = await params;
  const post = await getPostBySlug(slug);
  if (!post) notFound();

  return (
    <article>
      <h1 dangerouslySetInnerHTML={{ __html: post.title.rendered }} />
      <div dangerouslySetInnerHTML={{ __html: post.content.rendered }} />
    </article>
  );
}

The yoast_head_json field in that request is added to REST responses by Yoast SEO and holds the title, description, canonical and Open Graph data you set in WordPress, so you can feed it into Next.js generateMetadata instead of re-entering SEO fields. Only render content.rendered from a WordPress install where you trust everyone who can publish, because it is inserted as raw HTML.

2. Revalidate when an editor saves

Cached pages do not know an editor changed something. Add a route that revalidates the affected tag, and call it from WordPress. Per the Next.js docs, revalidateTag(tag, 'max') marks the data stale and the next visit triggers a background refresh; the single-argument form is deprecated.

// app/api/revalidate/route.ts
import { revalidateTag } from 'next/cache';

export async function POST(request: Request) {
  if (request.headers.get('x-revalidate-secret') !== process.env.REVALIDATE_SECRET) {
    return Response.json({ ok: false }, { status: 401 });
  }
  const { slugs = [] } = await request.json();
  for (const slug of slugs) {
    revalidateTag(`wp-post-${slug}`, 'max');
  }
  return Response.json({ ok: true, revalidated: slugs });
}

On the WordPress side, hook wp_after_insert_post (WordPress 5.6+) rather than save_post, because it fires after terms and meta are saved. This must-use plugin sends both the new and old slug, so renamed posts also refresh. If you are not sure where code like this goes, see our guide to functions.php and site plugins.

<?php
/**
 * Plugin Name: Headless revalidate
 * Save as wp-content/mu-plugins/headless-revalidate.php
 * Add define( 'HEADLESS_REVALIDATE_SECRET', 'long-random-string' ); to wp-config.php.
 */
add_action( 'wp_after_insert_post', function ( $post_id, $post, $update, $post_before ) {
	if ( wp_is_post_revision( $post_id ) || wp_is_post_autosave( $post_id ) || 'post' !== $post->post_type ) {
		return;
	}

	$was_public = $post_before && 'publish' === $post_before->post_status;
	if ( 'publish' !== $post->post_status && ! $was_public ) {
		return; // Draft-only changes never reached the public site.
	}

	$slugs = array_unique( array_filter( array(
		$post->post_name,
		$post_before ? $post_before->post_name : '',
	) ) );

	wp_remote_post( 'https://www.example.com/api/revalidate', array(
		'headers'  => array(
			'Content-Type'        => 'application/json',
			'x-revalidate-secret' => HEADLESS_REVALIDATE_SECRET,
		),
		'body'     => wp_json_encode( array( 'slugs' => array_values( $slugs ) ) ),
		'timeout'  => 5,
		'blocking' => false,
	) );
}, 10, 4 );

A static site that rebuilds on every change can use the same hook to POST to a Vercel, Netlify or Cloudflare deploy hook instead. That works for small sites but gets slow as page count grows, which is why per-page revalidation is the better default for Next.js.

3. Previews with Draft Mode

Preview is the feature teams most often forget. In WordPress the Preview button opens the theme; in headless there is no theme. Point the button at your frontend with the preview_post_link filter:

<?php
// Send the editor's Preview button to the Next.js draft route instead of the theme.
// Add define( 'HEADLESS_PREVIEW_SECRET', 'another-long-random-string' ); to wp-config.php.
add_filter( 'preview_post_link', function ( $link, $post ) {
	return add_query_arg(
		array(
			'secret' => HEADLESS_PREVIEW_SECRET,
			'id'     => $post->ID,
		),
		'https://www.example.com/api/draft'
	);
}, 10, 2 );

Then add the route the button opens. Next.js Draft Mode sets a __prerender_bypass cookie so that browser skips the cache, while everyone else keeps getting cached pages.

// app/api/draft/route.ts
import { draftMode } from 'next/headers';
import { redirect } from 'next/navigation';

export async function GET(request: Request) {
  const { searchParams } = new URL(request.url);
  const id = searchParams.get('id') ?? '';
  if (searchParams.get('secret') !== process.env.PREVIEW_SECRET || !/^\d+$/.test(id)) {
    return new Response('Invalid preview request', { status: 401 });
  }
  (await draftMode()).enable();
  redirect(`/preview/${id}`);
}
// app/preview/[id]/page.tsx
import { draftMode } from 'next/headers';
import { notFound } from 'next/navigation';

export default async function PreviewPage({ params }: { params: Promise<{ id: string }> }) {
  if (!(await draftMode()).isEnabled) notFound();
  const { id } = await params;

  // Application Password for a low-privilege Editor account, read on the server only.
  const auth = Buffer.from(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`).toString('base64');
  const res = await fetch(`${process.env.WP_URL}/wp-json/wp/v2/posts/${id}?context=edit`, {
    headers: { Authorization: `Basic ${auth}` },
    cache: 'no-store',
  });
  if (!res.ok) notFound();
  const post = await res.json();

  return (
    <article>
      <p>Preview: this draft is not public.</p>
      <h1>{post.title.raw}</h1>
      <div dangerouslySetInnerHTML={{ __html: post.content.rendered }} />
    </article>
  );
}

Two details matter here. Drafts need authentication, so the preview page uses an Application Password on the server; create it on a dedicated Editor account, not an administrator. And for posts that are already published, unsaved edits live in autosaves at /wp/v2/posts/<id>/autosaves, which also require authentication (an anonymous request returns 401 rest_cannot_read).

Where Faust.js fits now

Faust.js is WP Engine’s Next.js toolkit for headless WordPress. It handles authentication, Preview-button support, WordPress template hierarchy and block-to-component mapping, all built on WPGraphQL. It is actively maintained: @faustwp/core 4.1.1 shipped November 3, 2026, and the FaustWP companion plugin is at 1.9.1 (updated October 26, 2026).

The catch is the router. In a February 2025 retrospective post, the Faust team repositioned it as a “Toolkit for Next.js” and deprecated its experimental App Router support. The @faustwp/experimental-app-router package on npm now carries a deprecation notice saying it will not get further bug fixes or security patches. So Faust.js is a good fit for a Pages Router project on WPGraphQL; for a new App Router project, the hand-rolled pattern above or the HWP Toolkit examples are the safer base.

Authentication Between the Frontend and WordPress

Public content needs no authentication. The frontend reads published posts the same way an anonymous visitor would. You need credentials for drafts and previews, for writing data back (forms, comments, signups), and for any private endpoints.

  • Application Passwords are built into WordPress since 5.6 and need no plugin. Send them as a Basic Auth header from server code only. This is the default choice for previews and server-to-server writes.
  • JWT, via the JWT Authentication for WP REST API plugin (version 1.5.0, updated November 6, 2026, tested up to WordPress 7.1.4), fits when end users log in through your frontend and you want short-lived tokens.
  • WPGraphQL has its own authentication extensions; check that any you choose is still maintained before you depend on it.

Whatever you choose, never ship WordPress credentials to the browser. Requests that need them should go through a server component, route handler or serverless function.

Headless WordPress Hosting

A headless site has two halves to host, and you can keep them with one vendor or split them.

SetupWordPress backendFrontendGood for
Split hostingAny managed WordPress host or VPS, on a subdomain like cms.example.comVercel, Netlify or CloudflareMost teams; pick each half on its merits
All-in-one headless platformWP Engine Headless Platform (formerly called Atlas) hosts WordPress and a Node.js frontend togetherSame platformAgencies and teams that want one bill and one support contact; includes WPGraphQL and Faust.js blueprints
Self-managedYour own serverNode.js on the same or another serverTeams with ops experience
Hosting models for headless WordPress.

Two cost notes. The frontend can be free at small scale, but Vercel’s Hobby plan is restricted to non-commercial, personal use by its fair use guidelines, so a business site needs a paid plan or another host. And the real cost of headless is rarely hosting; it is the developer time to build and maintain the second stack.

Wherever WordPress lives, lock it down: it no longer needs to serve the public, so you can put the admin behind access rules, block the theme from being indexed, and keep only /wp-json/ (or /graphql) and media publicly reachable.

Migrating an Existing WordPress Site to Headless

Moving a site that already ranks is where headless projects lose traffic. Work through this list before you switch DNS:

  • Match every URL. Export the current URL list from your sitemap and make the frontend router produce the same paths, including trailing slashes. Our permalinks guide explains how WordPress builds them.
  • Carry over SEO metadata. Read titles, descriptions, canonicals and Open Graph tags from yoast_head_json (or your SEO plugin’s equivalent) rather than generating new ones.
  • Rebuild the sitemap and robots.txt on the frontend domain, and make sure the old WordPress domain does not stay indexable as a duplicate.
  • Replace every frontend plugin: forms, search, comments, related posts, ads, analytics, cookie banners.
  • Rewrite internal links and image URLs in post content that still point at the CMS domain, or proxy media through the frontend.
  • Set up previews and revalidation before launch, not after the first editor complaint.
  • Launch, then compare Search Console impressions for the main URLs week over week so you catch broken routes early.

A Minimal Setup, Step by Step

  1. Install WordPress on your backend host and set permalinks to Post name. Confirm cms.example.com/wp-json/wp/v2/posts?_fields=id,slug,title returns JSON.
  2. Optional: install WPGraphQL and confirm cms.example.com/graphql answers a query.
  3. Create an Editor account for the frontend and give it an Application Password for previews.
  4. Run npx create-next-app@latest (or npm create astro@latest) and add the fetch function and [slug] route shown above.
  5. Add the revalidate route and the wp_after_insert_post must-use plugin, with the shared secret in both places.
  6. Add the preview_post_link filter and the Draft Mode routes, then click Preview on a draft to test.
  7. Deploy the frontend, point your main domain at it, and keep WordPress on its subdomain.

Frequently Asked Questions

What do you lose in the editor when you go headless with WordPress?

The block editor itself still works, so writing and editing posts does not change. What you lose is everything the theme provided: the Site Editor and block theme templates, WYSIWYG accuracy (blocks may look different on the frontend unless you style or map them), the built-in Preview button until you build a preview route, and frontend features from plugins such as forms, sliders and page builders. Block styles from core and plugins only appear if your frontend loads matching CSS or maps blocks to components.

Is headless WordPress faster than traditional WordPress?

Often, but not automatically. Pre-rendered pages served from a CDN avoid PHP and database work on each request. A traditional WordPress site with full-page caching and a CDN avoids most of that too, so the gap is smaller than headless marketing suggests. Headless can also be slower if the frontend renders every page on request and calls an uncached WordPress API each time.

Can I still use WordPress plugins with headless WordPress?

Backend plugins keep working: Advanced Custom Fields, SEO plugins (their data is exposed in the API, for example Yoast’s yoast_head_json field), user role editors, security and backup plugins. Plugins that output HTML on the public site do not, because WordPress no longer renders that site. Forms, comments, sliders, share buttons and page builders need frontend replacements.

WPGraphQL vs REST API: which should I use for headless WordPress?

Use the REST API with the _fields parameter for simple content models, because it is built into core and needs no plugin. Use WPGraphQL when pages need nested data in one request, when you want typed queries, or when you use Faust.js or WP Engine blueprints. In a test on WordPress 7.1.4, one post with its author and category names came back as 345 bytes from WPGraphQL and 2,382 bytes from a trimmed REST request.

What is the best front-end framework for headless WordPress?

Astro for content-heavy sites that need little interactivity, and Next.js when you need app features, logged-in areas or Preview-button support. Nuxt and SvelteKit are good choices for teams that already use Vue or Svelte. Gatsby is still maintained but is not a strong pick for new projects.

Vercel vs a managed WordPress platform for a headless site?

You usually need both halves: something to run WordPress (PHP and MySQL) and something to run the frontend. Vercel runs the frontend only, so it pairs with any managed WordPress host. An all-in-one platform such as WP Engine’s Headless Platform runs both, which means one vendor and one support contact, at the cost of less choice. Split hosting is more flexible; all-in-one is simpler to manage.

Netlify only hosts the frontend. Where should I deploy a site that also needs a backend and database?

Put the WordPress backend, which needs PHP and a MySQL or MariaDB database, on a managed WordPress host or a VPS, and keep the frontend on Netlify. The frontend calls the WordPress API over HTTPS, so the two do not need to share a server. If you would rather have one provider for both, use a platform that hosts WordPress and a Node.js frontend together.

Is headless WordPress more expensive than traditional WordPress?

Usually. You pay for two hosts instead of one, though the frontend host can be free for personal projects. Note that Vercel’s free Hobby plan is limited to non-commercial use. The bigger cost is development: previews, revalidation, forms and SEO metadata all have to be built and maintained.

Should I use Faust.js?

Use Faust.js if you are on the Next.js Pages Router with WPGraphQL and want previews, authentication and template hierarchy handled for you. It is actively maintained by WP Engine (@faustwp/core 4.1.1 as of November 2026). Its experimental App Router support was deprecated in February 2025, so for a new App Router project use Next.js Draft Mode and tag revalidation directly, or start from the HWP Toolkit examples.

How do I make WordPress headless?

You do not need to switch anything off. Keep WordPress running, build a frontend that reads from /wp-json/ or /graphql, point your domain at the frontend, and move WordPress to a subdomain. Then add previews with the preview_post_link filter, a revalidation webhook, and redirects or noindex rules so the old theme URLs are not indexed.

Wrapping Up

Headless WordPress is a sound architecture when you need a custom frontend or one content source for several channels, and an expensive detour when you just want a faster blog. If you go ahead, start with the REST API and _fields, move to WPGraphQL when pages need nested data, and build previews and revalidation into the first sprint. Those two pieces are what separate a headless site editors like from one they work around.

Picture of Andy Feliciotti

Andy Feliciotti

Andy has been a full time WordPress developer for over 15 years. Through his years of experience has built 100s of sites and learned plenty of tricks along the way. Found this article helpful? Buy Me A Coffee

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Tips Monthly
Get the latest from SmartWP to your inbox.