• Resolved APKMODY

    (@apkmody)


    I used Polylang + Rank Math.

    Post and Page sitemap is OK. But category Sitemap does not include Vietnamese categories.

    Sitemap of Yoast SEO works fine.

    Can you check this?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter APKMODY

    (@apkmody)

    Anyone face this can add this code to theme function:

    /**
    * Get all terms in all languages when the language is set from the content or directory name
    */
    add_filter( ‘get_terms_args’, ‘rank_math_remove_terms_filter’ );
    function rank_math_remove_terms_filter( $args ) {

    if ( isset( $GLOBALS[‘wp_query’]->query[‘sitemap’] ) ) {
    $args[‘lang’] = ”;
    }

    return $args;

    }

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @apkmody

    Thank you for sharing the code with everyone.

    Once this PR is merged, it should be fixed for everyone:
    https://github.com/polylang/polylang/pull/373

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sitemap didnot include multi-languages category’ is closed to new replies.