Next Wp screenshot

Next Wp

Author Avatar Theme by 9d8dev
Updated: 7 May 2025
939 Stars

Headless WordPress built with the Next.js App Router and React Server Components

Categories

Overview:

The WordPress_Next_js Starter by 9d8 is a template designed for building Next.js applications that fetch data from a WordPress site using the WordPress REST API. It features functions for retrieving various content types such as posts, categories, tags, authors, and media from WordPress and rendering them within a Next.js application. This starter template utilizes Next.js 14, React, TypeScript, Tailwind CSS, shadcn/ui, and brijr/craft for development.

Features:

  • Data Fetching: Retrieve posts, categories, tags, authors, and featured media from a WordPress site.
  • Component Library: Utilizes brijr/components for quick and efficient development.
  • Dynamic Sitemap Generation: Automatically generates sitemaps based on WordPress content.
  • Environment Variables: Easily set environment variables in the .env.local file for configuration.

Installation:

To install the WordPress_Next_js starter template, follow these steps:

  1. Clone the repository or download the source code.
  2. Navigate to the project directory in your terminal.
  3. Create a .env.local file based on the provided .env.example file.
  4. Set the required environment variables in the .env.local file.
  5. Run npm install to install the dependencies.
  6. Start the development server with npm run dev.

Summary:

The WordPress_Next_js Starter by 9d8 is a comprehensive template for creating Next.js applications that interact with a WordPress backend through the REST API. With a range of functions for fetching different content types, integration with popular libraries, and easy setup with environment variables, this starter template provides a solid foundation for developers looking to build headless CMS applications with WordPress and Next.js.