Before You Begin
next-wordpress-starter uses Next.js and has been tested using
nodejs v16 with npm v8.
Why Use The Next.js WordPress Starter?
next-wordpress-starter is designed as a starting point to for a Next.js
site that consumes data from a WordPress backend - specifically a WordPress
backend configured with the
The starter has a dependency on the
includes some helpers that maximize any available features of the WordPress
Creating A New Project With The Template
To create a project using the latest version of the Next WordPress Starter, use
create-pantheon-decoupled-kit npm package.
The full documentation for the
create-pantheon-decoupled-kit can be found
Before you continue, familiarize yourself with our Next Wordpress add-ons, a suite of optional project expansions that bring new components, features, and styling into your starter kit.
To create a new project using
- In your terminal, run the following command:
npm init pantheon-decoupled-kit next-wp
- Follow the prompts in your terminal to complete the setup.
See the rest of the Next.js + WordPress documentation for more information on setting environment variables and customizing your new project!