ashhitch / wp-graphql-homepage
Query homepage and post post pages from reading settings with wp-graphql
Installs: 254
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- wp-graphql/wp-graphql: >=0.3.8
This package is auto-updated.
Last update: 2024-12-07 20:44:27 UTC
README
This is an extension to the WPGraphQL plugin (https://github.com/wp-graphql/wp-graphql) to return a Page
type of the homepage
and page for post
page set under the reading settings.
Quick Install
- Install & activate WPGraphQL
- Clone or download the zip of this repository into your WordPress plugin directory & activate the WP GraphQL Homepage plugin
Composer
composer require ashhitch/wp-graphql-homepage
Using this plugin? I would love to see what you make with it. @ash_hitchcock
Usage
To query for the Page Data as the seo object to your query:
query MyQuery {
homepage {
pageId
slug
title
content
excerpt
...
}
pageForPosts {
pageId
slug
title
content
excerpt
...
}
}