{"id":20617838,"url":"https://github.com/ozcancelik/wpgraphql-prev-next-random-post","last_synced_at":"2026-05-08T02:19:30.778Z","repository":{"id":87854473,"uuid":"592924517","full_name":"ozcancelik/wpgraphql-prev-next-random-post","owner":"ozcancelik","description":"This is a WordPress plugin that adds a new field to the GraphQL schema that allows you to query for the previous, next and random post of a given post type.","archived":false,"fork":false,"pushed_at":"2023-02-03T14:54:27.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T04:46:21.126Z","etag":null,"topics":["graphql","php","wordpress","wordpress-plugin","wpgraphql","wpgraphql-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ozcancelik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-24T20:34:18.000Z","updated_at":"2024-07-05T13:18:51.000Z","dependencies_parsed_at":"2023-03-09T01:45:14.136Z","dependency_job_id":null,"html_url":"https://github.com/ozcancelik/wpgraphql-prev-next-random-post","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozcancelik%2Fwpgraphql-prev-next-random-post","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozcancelik%2Fwpgraphql-prev-next-random-post/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozcancelik%2Fwpgraphql-prev-next-random-post/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozcancelik%2Fwpgraphql-prev-next-random-post/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozcancelik","download_url":"https://codeload.github.com/ozcancelik/wpgraphql-prev-next-random-post/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242277396,"owners_count":20101531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","php","wordpress","wordpress-plugin","wpgraphql","wpgraphql-plugin"],"created_at":"2024-11-16T12:06:09.145Z","updated_at":"2026-05-08T02:19:25.748Z","avatar_url":"https://github.com/ozcancelik.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WpGraphQL Previous, Next and Random Post.\n\nThis is a WordPress plugin that adds a new field to the GraphQL schema that allows you to query for the previous, next and random post of a given post type.\n\n## Installation\n\nDownload the plugin as a zip file and install it via the WordPress admin panel. Or add the code your theme's `functions.php` file.\n\nor\n\nInstall via git clone:\n\n```bash\ngit clone https://github.com/ozcancelik/wpgraphql-prev-next-random-post.git\n```\n\n## Usage\n\n### Previous and Next Post\n\n```graphql\nquery MyQuery {\n  post(id: \"cG9zdDox\") {\n    id\n    title\n    previous {\n      id\n      title\n    }\n    next {\n      id\n      title\n    }\n  }\n}\n```\n\n### Random Post\n\n```graphql\nquery MyQuery {\n  randomPost {\n    id\n    title\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozcancelik%2Fwpgraphql-prev-next-random-post","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozcancelik%2Fwpgraphql-prev-next-random-post","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozcancelik%2Fwpgraphql-prev-next-random-post/lists"}