Giter Site home page Giter Site logo

wp-graphql-autodescription's Introduction

WPGraphQL for The Seo Framework

This plugin adds The Seo Framework support to WP GraphQL.

Supports:

  • Pages
  • Posts
  • Custom post types
  • Categories
  • Custom taxonomies
  • The Seo Framework Settings
    • Webmaster verification
    • Social settings
    • Schema Presence

Pre-req's

Using this plugin requires having the WPGraphQL and The Seo Framework (free or pro) installed and activated.

Activating

Activate the plugin like you would any other WordPress plugin.

Once the plugin is active, the seo argument will be available to any post object connectionQuery (posts, pages, custom post types, etc).

Usage

Post Type Data

query PostsSeo {
  posts(first: 10) {
    nodes {
      seo {
        title
        description
        canonical
        images {
          altText
          uri
          mediaDetails {
            height
            width
          }
        }
        opengraph {
          description
          title
          type
        }
        twitter {
          description
          title
        }
        metaRobotsNofollow
        metaRobotsNoarchive
        metaRobotsNoindex
        redirect
      }
    }
  }
}

Taxonomy Data

query CategoriesSeo {
  categories(first: 10) {
    nodes {
      seo {
        title
        description
        canonical
        images {
          altText
          uri
          mediaDetails {
            height
            width
          }
        }
        opengraph {
          description
          title
          type
        }
        twitter {
          description
          title
        }
        metaRobotsNofollow
        metaRobotsNoarchive
        metaRobotsNoindex
        redirect
      }
    }
  }
}

Settings Data

query SeoSettings {
  seoSettings {
    separator
    presence {
      logo
      name
      type
    }
    webmaster {
      baiduVerification
      googleVerification
      pinterestVerification
      yandexVerification
      bingVerification
    }
    social {
      facebook {
        appId
        authorFallback
        publisher
      }
      twitter {
        authorFallback
        cardType
        profile
      }
    }
  }
}

wp-graphql-autodescription's People

Contributors

nogueiram-27 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.