• Hello
    Urls translated by Transposh can be added to the Rank Math SEO plugin with this little changes in Rank Math plugin.
    In theses 2 files:
    seo-by-rank-math\includes\modules\sitemap\providers\class_taxonomy.php
    seo-by-rank-math\includes\modules\sitemap\providers\class_post_type.php

    just after $links[] = $url;

    add

    /** Transposh Fix */
    $langurls = apply_filters( 'wpseo_sitemap_language',$url);
    if ( is_array( $langurls )) {
     foreach ($langurls as $langurl) {
    	$links[] = $langurl;
     }
    continue;
    }
    /** End Transposh fix */

    You must recreate the sitemap so that translation take effects.
    To recreate sitemap go to https://www.yourwebsite.com/wp-admin/admin.php?page=rank-math-options-sitemap
    Then change an option and click save.

    Hope this can help

  • The topic ‘A solution for compatibility for Rank Math SEO and Transposh translation of urls’ is closed to new replies.