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
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.zipOn Packagist as matepaiva/yarpp-wpgraphql:
composer require matepaiva/yarpp-wpgraphqlNo 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
- 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
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.