Overview
The Next.js WordPress Starter is a project that aims to use WordPress as a headless CMS and Next.js to create a static website that can be deployed anywhere. It includes several features such as blog, pages, posts, categories, authors, search, RSS feed, and sitemap. The theme is designed to be SEO friendly and performant out of the box.
Features
- Blog
- Pages
- Posts
- Categories
- Authors
- Search
- RSS feed
- Sitemap
Installation
- Clone the repository.
- Install WordPress and WPGraphQL.
- Create an .env.local file in the root directory with the following content:
WORDPRESS_GRAPHQL_ENDPOINT=[Your Host]/graphql WORDPRESS_MENU_LOCATION_NAVIGATION=PRIMARY WORDPRESS_PLUGIN_SEO=false
- Optionally, configure environment variables in next.config.js.
Summary
The Next.js WordPress Starter is a powerful tool for scaling WordPress websites using the static web capabilities of Next.js. It allows developers to create a static website experience without any 3rd party services and can be deployed anywhere. With features like blog, pages, posts, categories, authors, search, RSS feed, and sitemap, it provides a comprehensive solution for creating a fully functional and performant WordPress theme.