Relative Content

Tag Archive for wordpressnext.js14app-routerheadless-cmswp-graphql

Dynamic Page Routing in Next.js 14 (app router) with WordPress as a Headless CMS

Could you please describe how page routing would be implemented in Next.js 14 using the App Router, considering the scenario where WordPress is employed as a headless CMS? This setup should accommodate both inner pages and posts authored within WordPress. The goal is to enable administrators to craft their own inner pages autonomously. Initially, the total number of pages is undetermined, and I prefer not to manually define each one, with the exception of the homepage. Below are examples of some of the pages: