postedin/yarpp-wpgraphql
最新稳定版本:1.1.0
Composer 安装命令:
composer require postedin/yarpp-wpgraphql
包简介
Creates a relatedPosts field in Post type with wp-graphql. You must have installed wp-graphql and YARPP.
README 文档
README
- Tags: wpgrahql, yarpp, related-posts
- Requires at least: 5.1
- Tested up to: 5.6.2
- Requires PHP: 7.2
- Stable tag: 0.0.1
- License: GPLv2 or later
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
Description
Creates a relatedPosts field in Post type with wp-graphql. You must have installed wp-graphql and YARPP.
Installation
- Install the plugin wp-graphql
- Install the plugin yarpp (Yet Another Related Posts Plugin)
- Configure them following their instructions.
- Install this plugin
- Activate the plugin through the 'Plugins' menu in WordPress
- Use it with wp-graphql. The field "relatedPosts" will be available within the Post type in GraphQL schema.
Example
{
post(id: 235912, idType: DATABASE_ID) {
title
relatedPosts(where: { limit: 1 }) {
nodes {
title
slug
}
}
}
}
Changelog
统计信息
- 总下载量: 374
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-08