Created
April 14, 2026 04:05
-
-
Save vapvarun/2e5d5574f78db5efc3fea2f9b1be8482 to your computer and use it in GitHub Desktop.
Headless WordPress with Next.js: Why and How to Go Decoupled (wppioneer.com)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Next.js page query | |
| query GetPost($slug: ID!) { | |
| post(id: $slug, idType: SLUG) { | |
| title | |
| content | |
| date | |
| featuredImage { | |
| node { sourceUrl altText mediaDetails { width height } } | |
| } | |
| seo { title metaDesc canonical } | |
| author { node { name avatar { url } } } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment