ashhitch/wp-graphql-homepage
最新稳定版本:v1.0
Composer 安装命令:
composer require ashhitch/wp-graphql-homepage
包简介
Query homepage and post post pages from reading settings with wp-graphql
README 文档
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
...
}
}
Support
统计信息
- 总下载量: 288
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-12-07