@nextwp/core
Welcome to the new era of Headless WordPress development.
Embrace the evolution of Next.js with @nextwp/core
, your premier choice for creating headless WordPress applications. This library seamlessly integrates with the Next.js App Router, bringing cutting-edge features like Server Components, Streaming, SSG, and ISR into your headless WordPress projects with ease.
Choose @nextwp/core
for its unmatched flexibility, performance, and ease of use, making it a standard-setter in the world of modern WordPress development.
Get started in just a few minutes using the create-nextwp-app cli tool and see the difference it makes! It is truly the best way to build headless WordPress applications with Next.js.
Features
-
Server Side Generation (SSG): Effortlessly pre-render content from WordPress in your Next.js app.
-
On-Demand Incremental Revalidation: Revalidates pages on demand when content updates in WordPress.
-
CMS Previews with Next.js Draft Mode: Instantly preview your content changes while you work for a seamless editing experience.
-
Sitemap Generation: Automatically generates a
sitemap.xml
for your pages, posts, and optionally custom post types. -
ACF Support: Page data automatically includes the acf field from the REST API. Just enable "Show in REST API" for your field group.
-
Flexible Content Component: Easily render ACF flexible content fields in your Next.js app.
Installation
pnpm add @nextwp/core
Usage
Each part of @nextwp/core
can be used independently but they are designed to work together to provide a seamless experience.
View the Quickstart guide to get started with a new project, or install @nextwp/core
in an existing project and follow the other Guides below:
- Adding Dynamic Routes
- Using CMS Preview
- Pre-rendering pages with SSG
- Adding New Page Templates
- Adding New Custom Post Types
Refer to the documentation for usage instructions.