When using wp-graphql
, you can use this package to bring the next and previous articles in the post.
cd wp-content/plugins
git clone --branch master https://github.com/m-inan/wp-graphql-next-previous-post.git
query Post {
post(id: 1, idType: DATABASE_ID) {
title
next {
title
}
previous {
title
}
}
}
No Dependencies.
If believe you've found an issue, please report it along with any relevant details to reproduce it.
Please do not use the issue tracker for personal support requests. Instead, use StackOverflow.
Yes please! Feature requests / pull requests are welcome.