Hi @ashleynexvelsolutions,
We don’t have an estimated date for when this page will be updated, but we might be able to help. Can you give us more details or what questions you might have related to the robots meta tag?
Hey Priscilla,
Thanks so much for getting back to me so quickly. I was able to find what I needed here: https://gist.github.com/amboutwe/0c71e42aa164238007d7ea88f174a93f.
I’m using WordPress in a headless manner. I do wonder why yoast_meta in graphql doesn’t output a <title> tag. On a traditional WordPress site your plugin outputs that. In yoast_meta graphql it’s only giving me the og:title. Your documentation on the REST API https://developer.yoast.com/customization/apis/rest-api implies that it’s supposed to be there.
“The head contains the complete meta output for the page. This means the Yoast SEO REST API output contains everything:
The title
…
OpenGraph meta data
“
Hi @ashleynexvelsolutions,
We’re glad that you found the information that you needed. The Yoast REST API does display the title. Do you have any example URL where you’re not seeing the title in the Yoast REST API?
Also, do you have more details about how you’re getting GraphQL data? That isn’t a feature of Yoast SEO.
Looking at your docs here https://developer.yoast.com/customization/apis/rest-api an example would be https://wordpress-321502-1296134.cloudwaysapps.com/wp-json/yoast/v1/get_head?url=https://wordpress-321502-1296134.cloudwaysapps.com/hvac-services/. It’s got the og:title but not the <title> tag. I have just disabled all other plugins to see if perhaps it was a plugin conflict, but that did not do anything.
I have to get back to you about how it’s being pulled in to GraphQL.
Hi,
We are using WordPress v5.7 on the theme 2020 v1.7 using Yoast SEO v15.9.2 and we can output the title tag into the head as expected. See image https://ibb.co/g9QkGj7.
Please let us know more about the GraphQL set-up.
Aha! That helped me narrow it down to the theme. It’s just a Gatsby site so there’s nothing on the front end of https://wordpress-321502-1296134.cloudwaysapps.com/, so my WordPress theme is extremely bare bones. In functions.php it was missing add_theme_support( ‘title-tag’ );. So it’s working now. Thank you @pcosta88 and @priscillamc.