Latest posts
Published posts with identifiers, slugs, excerpts, featured images, and pagination.
Query templates
Use these patterns as a starting point, then adapt fields and arguments to match the schema exposed by your WordPress site.
Published posts with identifiers, slugs, excerpts, featured images, and pagination.
Resolve a WordPress page using its URI for dynamic frontend routes.
Fetch menu items and parent relationships for frontend navigation.
Filter content by category, tag, or a custom taxonomy term.
Search exposed content types with pagination and result metadata.
Query product listings, prices, images, and taxonomy data when WooGraphQL is active.
query PageByUri($uri: ID!) {
nodeByUri(uri: $uri) {
... on Page {
id
title
content
slug
}
}
}query Posts($after: String) {
posts(first: 12, after: $after) {
pageInfo { hasNextPage endCursor }
nodes { id slug title excerpt }
}
}Templates are examples, not guaranteed drop-in operations. Validate every template against your endpoint because field names, nullability, permissions, and extension behavior vary between WordPress installations.