To use this plugin you'll need:
- WPGraphQL - 🚀 GraphQL API for WordPress
- SmartCrawl or SmartCrawl PRO - WordPress SEO checker, analyzer, and optimizer
For posts and post types:
query GET_POSTS {
posts {
edges {
node {
id
title
date
smartcrawl_seo{
title
metaDesc
metaRobotsNoindex
metaRobotsNofollow
opengraphTitle
opengraphDescription
canonical
opengraphImage {
sourceUrl
}
twitterTitle
twitterDescription
twitterImage {
sourceUrl
}
twitterCard
focusKeywords
}
}
}
}
}
For taxonomies:
query GET_CATEGORIES {
categories {
edges {
node {
smartcrawl_seo{
title
metaDesc
metaRobotsNoindex
metaRobotsNofollow
opengraphTitle
opengraphDescription
canonical
opengraphImage {
sourceUrl
}
twitterTitle
twitterDescription
twitterImage {
sourceUrl
}
twitterCard
focusKeywords
}
}
}
}
}
Big thanks to Ashley Hitchcock for inspiration.