WordPress for the words. Next.js for the rest.

Nextpress keeps editing in WordPress and moves rendering to a Next.js front end. The two talk over REST: the editor saves blocks, and the front end fetches and renders them.

From editor to page

What happens between pressing Update and seeing the page.

  1. 01Editor

    An editor fills in a block

    Blocks are ACF blocks. Their fields come from a fields.json file in the front-end theme, so the editor form and the component share one definition.

    blocks/marquee/fields.json
    [
      { "id": "items", "type": "repeater", "min": 1,
        "fields": [{ "id": "text", "type": "text" }] },
      { "id": "speed", "type": "select",
        "choices": [{ "slow": "Slow" }, … ] }
    ]
  2. 02WordPress

    WordPress registers it

    The Nextpress plugin reads the block list from the front end and registers each one as an ACF block.

    GET /api/blocks/
    {
      "default": [
        { "id": "default--marquee", "fields": [ … ] },
        { "id": "default--gallery", "fields": [ … ] }
      ]
    }
  3. 03REST

    The page is served as JSON

    The router endpoint returns the page with each block’s saved data, formatted by ACF.

    GET /wp-json/nextpress/router/platform
    {
      "blockName": "acf/default--marquee",
      "data": {
        "items": [{ "text": "deck-hero" }, … ],
        "speed": "slow",
        "theme_override": "dark"
      }
    }
  4. 04Registry

    The front end finds a component

    A generated registry maps each block name to its component, loaded on demand.

    src/blocks.registry.generated.ts
    export const blocks = {
      "acf/default--marquee": () =>
        import("@themes/default/blocks/marquee"),
      "acf/default--gallery": () =>
        import("@themes/default/blocks/gallery"),
    };
  5. 05Component

    React renders the block

    The block passes its fields to a component, which wraps itself in BlockWrapper for colour theme and spacing.

    blocks/marquee/index.tsx
    export function MarqueeBlock(props) {
      const { items, speed, direction } = props.data;
      return (
        <Marquee
          items={items.map((item) => item.text)}
          speed={speed}
          direction={direction}
          blockOptions={getBlockOptions(props.data)}
        />
      );
    }

Custom blocks and core blocks

Custom blocks

Built for this theme, each with its own fields and component.

  • Heroes: deck-hero, hero-image
  • Media: gallery, parallax-image
  • Story: timeline, process-flow, stats
  • Forms: contact-form

Core blocks

WordPress’s own blocks, styled by the same tokens.

  • Headings, paragraphs and lists
  • Quotes and code
  • Columns, groups and buttons
// Every block's data carries the Block Settings fields.
<BlockWrapper blockOptions={getBlockOptions(props.data)}>
  …
</BlockWrapper>

// theme_override: light | light-secondary | dark
//   | dark-secondary | overlay
// padding_top, padding_bottom: 0 | xs | sm | md
//   | lg | xl | margin | section

Try the palette

Pick a preset to recolour this page. Every block reads the same tokens, so the whole page changes at once. The table checks the main text pairs against WCAG AA.

Contrast, WCAG 2.1 AA
Bottle on chalk–
Chalk on bottle–
Ink on flare–

Default applied

Black and white facade of curved, perforated metal bands
NP–14 · Stack
  • Next.js
  • ACF
  • Tailwind

The stack

A Next.js App Router front end with Tailwind 4 driven by CSS tokens. WordPress with ACF Pro and Gravity Forms behind it, running locally in Docker.

  • deck-hero
  • marquee
  • gallery
  • timeline
  • process-flow
  • palette-switcher
  • contact-form
  • hero-image
  • text-and-image
  • text-section
  • stacked-links
  • stats
  • parallax-image
  • featured-posts
  • archive-feed

Build on it.

Add a block by adding a folder: fields, a component, and the registry picks it up.