Support » Plugin: Yoast SEO » Does not work well with Rest API

  • Resolved jaxwtf


    Im using WordPress as headless CMS API and SEO Yoast and two issues I have are:

    1. Get SEO-data for custom endpoint.
    To get my SEO-data right I have a custom class that gets the values from post meta. The problem I have is that it contains raw text like %%sitename%% etc. Is it any way to use functions or filters? Like yoastseo_parse_this() or similar. I cant find a good way to do this.

    2. Sitemaps and different domains
    I have configured WordPress to use but the CMS uses This causes Yoast to skip all urls in sitemap. The plugin should have some way to make this to work.

    if ( $this->get_classifier()->classify( $url[‘loc’] ) === WPSEO_Link::TYPE_EXTERNAL ) {
    //return false;

    It works if I comment out this return false but its getting override during every update. You should find a solution for this.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does not work well with Rest API’ is closed to new replies.