niels-garve / yoast-to-rest-api

Adds the Yoast fields for pages and posts to the WP-API response
15 stars 10 forks source link

What are the endpoints in the plugin? #2

Closed coderbhaai closed 4 years ago

coderbhaai commented 4 years ago

I am not able to figure out the endpoints for the plugin.

Would be nice if the same is provided in the documentation for beginers.

ghost commented 4 years ago

@coderbhaai I have same issue, did you manage to figure out the endpoints for this plugin.

coderbhaai commented 4 years ago

@expatguideturkey No, I used better-rest-endpoints (https://github.com/factor1/better-rest-endpoints)

This has most of the endpoints that can be used for Yoast SEO... Let me know if you need nay help.

ghost commented 4 years ago

@coderbhaai thanks for sharing the plugin. Is there a way to extract focus keyword field of yoast seo. With this plugin I can only extract below fields:

wordpressPage(wordpress_id: {eq: 152070}) {
    yoast_meta {
      yoast_wpseo_canonical
      yoast_wpseo_metadesc
      yoast_wpseo_title
    }
  }
Poliuk commented 4 years ago

@coderbhaai @expatguideturkey my team has released a new plugin to expose head tags in the rest API, fully compatible with Yoast SEO and All in One SEO.

You can take a look at it here: https://wordpress.org/plugins/rest-api-head-tags/

ghost commented 4 years ago

how to extract focus keyword field. it's not listed there.

coderbhaai commented 4 years ago

@expatguideturkey The focus keyword is showing. Try using Postman to check data you get in API Call and everything will be clear. It appears as "yoast": { "yoast_wpseo_focuskw":

niels-garve commented 4 years ago

Hello everyone! I am not maintaining this plugin anymore. Please have a look a the README. I just added a link to the repository that I forked. They suggest a new plugin. I'm closing here. Sorry for the delay! Kind regards Niels

Poliuk commented 4 years ago

For anyone ending up here, I was one of the creators of the original plugin that it's not maintained anymore because we have released a new one: https://wordpress.org/plugins/rest-api-head-tags/

Thanks for your work @niels-garve

niels-garve commented 4 years ago

Thank you @Poliuk ! And amazing new plugin!