• Resolved angelseee

    (@angelseee)


    Why are not the newest resources located at the beginning of the map: https://site.com/post_tag-sitemap1.xml ?

    	<url>
    <loc>https://site.com/tag/test-2/</loc>
    <lastmod>2024-06-04T16:58:14+00:00</lastmod>
    </url>
    <url>
    <loc>https://site.com/tag/test-1/</loc>
    <lastmod>2024-04-30T19:23:44+00:00</lastmod>
    </url>
    <url>
    <loc>https://site.com/tag/test-4/</loc>
    <lastmod>2024-07-05T15:23:50+00:00</lastmod>
    </url>
    <url>
    <loc>https://site.com/tag/test-34/</loc>
    <lastmod>2024-07-05T15:23:50+00:00</lastmod>
    </url>
    • This topic was modified 1 year, 7 months ago by angelseee.
    • This topic was modified 1 year, 7 months ago by angelseee.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @angelseee,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    To ensure that your sitemap is updated and the newest posts are listed, please follow the steps below:

    1. Flush the Sitemap cache by following this video screencast:
      https://i.rankmath.com/pipRDp
    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
      https://rankmath.com/kb/exclude-sitemaps-from-caching/
    3. Apply the following filter code to your site.
      add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    Thread Starter angelseee

    (@angelseee)

    The problem with chaotic sorting by lastmod is observed ONLY in maps for tags: post_tag-sitemap.xml

    In maps for posts: post-sitemap.xml, sorting by lastmod occurs correctly.

    Your advice did NOT SOLVE the problem with chaotic sorting by lastmod in tag maps: post_tag-sitemap.xml!

    • This reply was modified 1 year, 7 months ago by angelseee.
    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @angelseee,
     
    Apologize for the inconvenience.
     
    At the moment, the post tags aren’t sorted by their lastmod but by the ascending order in which they are created.
     
    With that said, this shouldn’t cause an issue with how Google is crawling them.
     
    Hope that helps.

    Thread Starter angelseee

    (@angelseee)

    When the site is very large, it is very convenient to use sitemap.xml to control new events occurring on it.

    Please make the cards for tags: post_tag-sitemap.xml the same logical sorting by lastmod as in the cards for posts: post-sitemap.xml!

    I hope for changes for the better in my favorite plugin “Rank Math”!

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @angelseee,
     
    We have shared your suggestion with the developers and will let you know if they decide to change the sorting of the tags in the sitemap.
     
    Please do not hesitate to let us know if you need our assistance with anything else.
     
    Thank you.

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

The topic ‘Sort post_tag-sitemap.xml by lastmod’ is closed to new replies.