WebDevStudios / nextjs-wordpress-starter

A headless starter for WordPress powered by Next.js.
https://webdevstudios.github.io/nextjs-wordpress-starter/
GNU General Public License v2.0
738 stars 129 forks source link
advanced-custom-fields algolia apollo-client backend formik gravityforms hacktoberfest headless-cms nextjs react storybook tailwindcss wordpress wordpress-api wp-graphql wpgraphql

Next.js WordPress Starter

WebDevStudios. Your Success is Our Mission.

As of 02/27/2024, this repository has been archived and is now read-only.

This project is outdated and no longer being maintained. WebDevStudios has developed different methods for headless WordPress projects that we may publish to a public repo in the future. We are grateful for the engagement here, and for all contributions and discussions.

While this repository is no longer actively maintained, we're keeping it available for historical reference and for those who might still find the code useful.

For the latest on our projects and developments, please visit https://webdevstudios.com

Thank you for your support and contributions over the years. We hope you continue to find value in our past work and join us in our new ventures.

WebDevStudios / WD3, LLC

Documentation - Historical

Querying a REST-API or GraphQL endpoint and looping over blog posts is where many tutorials about "headless WordPress" stop. You'd be hard pressed to find a deep-dive into advanced functionality because: headless WordPress is hard.

At WebDevStudios we believe that WordPress is so much more than a blog-- and our clients require support for things like: SEO, menus, forms, previews, search, comments, authentication, custom post types, custom fields, etc...

With this framework, we've figured out the "hard stuff" and placed the sum of our knowledge into something both the community and our future projects could use as a jumping off point.

Getting Started

There are two environments, the backend (WordPress) and the frontend (Next.js). Each environment has its own setup instructions.

  1. Backend setup docs
  2. Frontend setup docs

License

This is free software, and released under the terms of the GNU General Public License version 2 or any later version. Please note, that other packages or libraries may be released under different licenses.