postedin/yarpp-wpgraphql 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Description

Creates a relatedPosts field in Post type with wp-graphql. You must have installed wp-graphql and YARPP.

Installation

  1. Install the plugin wp-graphql
  2. Install the plugin yarpp (Yet Another Related Posts Plugin)
  3. Configure them following their instructions.
  4. Install this plugin
  5. Activate the plugin through the 'Plugins' menu in WordPress
  6. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-08