phpbits / wp-graphql-yoast-seo

This is an extension to the WPGraphQL plugin for Yoast SEO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WPGraphQl Yoast SEO Plugin

This is an extension to the WPGraphQL plugin (https://github.com/wp-graphql/wp-graphql) that returns Yoast SEO data

Quick Install

  1. Install & activate WPGraphQL
  2. Clone or download the zip of this repository into your WordPress plugin directory & activate the WP GraphQL Yoast SEO plugin

Usage

To query for the SEO Data:

{
  pages(first: 10) {
    edges {
      node {
        id
        title
        seo {
          title
          metaDesc
          focuskw
          metaKeywords
          metaRobotsNoindex
          metaRobotsNofollow
          opengraphTitle
          opengraphDescription
          opengraphImage
          twitterTitle
          twitterDescription
          twitterImage
        }
      }
    }
  }
}


## Notes
This can be used in production, however it is still under active development.

Support

Open an issue

About

This is an extension to the WPGraphQL plugin for Yoast SEO


Languages

Language:PHP 100.0%