manifest / integrations / wp-graphql-homepage
WPGraphql Homepage
Query homepage and post post pages from reading settings with wp-graphql
★ 6stars
309composer installs
v1.0latest · 6 years ago
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/ashhitch/wp-graphql-homepage/archive/refs/heads/master.zipOn Packagist as ashhitch/wp-graphql-homepage:
composer require ashhitch/wp-graphql-homepageNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
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
...
}
}
Support
Releases
1 release.
Tag
Published
v1.0
latest
Dec 7, 2019 6 years ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.