ashhitch / wp-graphql-yoast-seo

This is an extension to the WPGraphQL plugin for Yoast SEO
GNU General Public License v3.0
216 stars 49 forks source link

Missing information - Configuration > Taxonomies archive configuration #174

Open yaronuliel opened 3 weeks ago

yaronuliel commented 3 weeks ago

In Yoast SEO - it is possible to configure the visibility, and the title / meta tags of a taxonomy archive (either custom or category/tag) via the configuration screens. It would be great to be able to query this information through the GraphQL schema. This should basically work similar to the way that to contentTypes works

The configuration is available at /wp/wp-admin/admin.php?page=wpseo_page_settings#/taxonomy/categories (for example, for categories) - and the schema might look something like:

{
   seo {
      taxonomies  {
         category {
            archive {
               archiveLink
               breadcrumbTitle
               fullHead
               hasArchive
               metaDesc
               metaRobotsFollow
               metaRobotsIndex
               metaRobotsNofollow
               metaRobotsNoindex
               title
            }
         }

         tag {
            archive {
               archiveLink
               breadcrumbTitle
               fullHead
               hasArchive
               metaDesc
               metaRobotsFollow
               metaRobotsIndex
               metaRobotsNofollow
               metaRobotsNoindex
               title
            }
         }

         someCustomTaxonomy {
            archive {
               archiveLink
               breadcrumbTitle
               fullHead
               hasArchive
               metaDesc
               metaRobotsFollow
               metaRobotsIndex
               metaRobotsNofollow
               metaRobotsNoindex
               title
            }
         }
     }
}