m-inan/wp-graphql-next-previous-post

WPGraphql Post type for next and previous field

dev-master 2021-08-04 14:02 UTC

This package is auto-updated.

Last update: 2025-07-04 22:51:41 UTC


README

When using wp-graphql, you can use this package to bring the next and previous articles in the post.

Installation

cd wp-content/plugins

git clone --branch master https://github.com/m-inan/wp-graphql-next-previous-post.git

Usage

query Post {
    post(id: 1, idType: DATABASE_ID) {
        title
        next {
            title
        }
        previous {
            title
        }
    }
}

Dependencies

No Dependencies.

Reporting Issues

If believe you've found an issue, please report it along with any relevant details to reproduce it.

Asking for help

Please do not use the issue tracker for personal support requests. Instead, use StackOverflow.

Contributions

Yes please! Feature requests / pull requests are welcome.