• Resolved givanniversace

    (@givanniversace)


    Hello guys, the plugin is really cool. I quit Rank Math SEO for this plugin. But there is one nuance that I can’t figure out how to solve.

    I created a site map not simplified, but a regular one where only all the pages and products will be.

    And the main problem is that Yandex and Google refuse to read site maps (I have 35 of them), only 2 are read, and 404 for the rest.

    If you just go to my site’s sitemap and take a walk, then everything is available..

    Please direct me where to dig? Setting up the server? .htaccess?

    Thanks

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

    (@givanniversace)

    In general, I solved the problem guys..

    This is an internal Woocommerce error

    add_filter( ‘posts_request’, ‘fix_sitemaps_pagination_wp_bug’, 10, 2 );

    function fix_sitemaps_pagination_wp_bug( $request, $wp_query ){

    global $wpdb;

    if( isset( $wp_query->query[‘sitemap’] ) && $wp_query->is_main_query() ){

    return “SELECT * FROM $wpdb->posts LIMIT 1”;

    }

    return $request;

    }

    Plugin Author Sybre Waaijer

    (@cybr)

    I’m happy you found a solution, though I’m unsure how you landed on that. If you have the time, please elaborate. Thanks! 🙂

    These WordPress Core issues are probably related:
    1. https://core.trac.wordpress.org/ticket/51117
    2. https://core.trac.wordpress.org/ticket/51542

    You can adjust the number of sitemaps by changing the Sitemap Query Limit setting at SEO Settings. Increasing that number will result in fewer sitemaps at the expense of slower rendering times for each. It might also affect how fast Google and Yandex parse the sitemaps.

    Have a lovely day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.