WP Manifestindependent plugin directory
manifest / integrations / yarpp-wpgraphql

YARPP WPGraphQL

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

★ 7stars
201composer installs
0.0.2latest · 2 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/matepaiva/yarpp-wpgraphql/archive/refs/heads/main.zip

On Packagist as matepaiva/yarpp-wpgraphql:

composer require matepaiva/yarpp-wpgraphql
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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

Releases

1 release.

Tag
Published
0.0.2 latest
Apr 26, 2024 2 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.