Skip to content

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.

License

Notifications You must be signed in to change notification settings

ashhitch/wp-graphql-homepage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  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

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages