Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I am using Headless Wordpress with https://www.wpgraphql.com/ for API hosted on SiteGround and Nextjs for frontend.
Thanks a lot! I ended up creating an empty theme to do this by following the code from https://serverfault.com/questions/853179/redirect-all-urls-to-the-root-except-wp-admin-and-wp-json. I have shared the theme here: https://github.com/harrywang/redirect-headless-wp which I hope can help someone. It would be great if anyone can tell me how to use Wordpress theme customization UI to make the changes instead of editing the index.php file - I don't know much about Wordpress theme development.
Related posts
- Nuxt3, Wordpress and ACF Flexible content types
- Looking for a plugin/codebase using which I can enter and save data which will then be available via the REST API
- How to fetch data from a GraphQL endpoint into a NextJS 13 server component using the native fetch() API
- how to add login for site owner and functions to add and remove media/text from website?
- Build and deploy site when wordpress data update.