Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashhitch/wp-graphql-homepage
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.
https://github.com/ashhitch/wp-graphql-homepage
wordpress wordpress-plugin wpgraphql wpgraphql-plugin
Last synced: 10 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ashhitch/wp-graphql-homepage
- Owner: ashhitch
- License: gpl-3.0
- Created: 2019-12-06T20:46:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-07T09:45:56.000Z (almost 5 years ago)
- Last Synced: 2024-05-21T09:18:27.073Z (6 months ago)
- Topics: wordpress, wordpress-plugin, wpgraphql, wpgraphql-plugin
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WPGraphQl Homepage
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
1. Install & activate [WPGraphQL](https://www.wpgraphql.com/)
2. 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](https://twitter.com/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
[Open an issue](https://github.com/ashhitch/wp-graphql-homepage/issues)