Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.76k stars 885 forks source link

Yoast Post Sitemap not sorted descending by modified time #13923

Open BradFD opened 4 years ago

BradFD commented 4 years ago

Please give us a description of what happened.

Post sitemaps are sorted oldest modified date first then newest when it should be the reverse with newest modified posts appearing first in the post sitemap. This is with current 12.5 plugin

I have checked multiple sites under my control and they all show this sorting behavior in the post sitemap. See below

Current Sorting of Post Sitemap Example:

  1. Homepage (modified recently)
  2. Old post (ex 2013 modified date)
  3. Old Post (ex 2014 modified date) 4 Old Post (ex 2015 modified date) and so on to: 1000. New Post (modified yesterday)

Please describe what you expected to happen and why.

I expect most recently modified posts to appear first in the sitemap and descend from there. Expected Sorting of Post Sitemap Example.

  1. Homepage (modified recently)
  2. Newest Post (modified today)
  3. Next Newest modified Post (modified yesterday)
  4. Next Next Newest modified Post (modified 3 days ago)
  5. etc and so on to: 1000. Oldest modified (ex 2014 modified date, years ago)

How can we reproduce this behavior?

  1. Load post sitemap
  2. See homepage as first entry
  3. See oldest modified dates second and then ascending to the most recently modified post appearing last in the sitemap.

Technical info

Djennez commented 4 years ago

Hi @BradFD , this should not make a difference, SEO-wise. Why would you like to see this?

BradFD commented 4 years ago

Sorting by modified date with most recent date first ensures optimized use of crawl budget. Additionally, in the "multiple URL" example shown in the specification document at https://www.sitemaps.org/protocol.html#sitemapXMLExample the example shows entries appearing sorted by the most recent modified date to the oldest modified date. Logically, this is also the way to do.

Djennez commented 4 years ago

@jono-alderson I contacted you about this yesterday, would you mind having a look and seeing if this is a valid feature request?

jonoalderson commented 4 years ago

I don't think that the ordering is particularly important as far as Google is concerned (unless you have an enormous site, crawl budget for XML sitemaps shouldn't be a concern - they're not crawled/consumed/processed in the same way/system as conventional URLS/pages).

However, generally, I think that sorting by last modified date would make sense as a default.

Buuuut, I think this needs some scoping. I'm thinking it through, and there are some grey areas. E.g.,

More generally, If I make a minor alteration to a legacy post, should that catapult it to the top of the list? That feels awkward.

Up for discussion!

Lofesa commented 4 years ago

Hi My 5 cts. I think is a reasonable feature. When the OP say crawl budget, I think is not about crawl the xml files but to urls from the site, i will say, if you have and old site with 1000 url´s you may expect that not all the url be crawled, so the user may will that the newest url be crawled/indexed first, before the older content. In other hand, if you modify and older post, changed their content, you may will that these renewed post be crawled before the unchanged older post. About special pages, all most the blog home is allways the 1st. cause in the functions that put the url in sitemap first is calculated the home and then the post/pages. maybe others stuff like store home need some modifications. But all this maybe solved with a check in settings and let the user choose wath the order for sitemaps is.

adidoro commented 3 years ago

I also think is a good feature. Any update yet?

saqib-ahmed commented 3 years ago

This is a must-have feature for us. Any update on this?

mbenedek commented 2 years ago

Google uses the first few elements as the "site links" under the main page search result. So, yes it absolutely matters what order the posts are in. Also, logically, the most recently modified post should be at the top of the list, since it has the most recent content, and should be indexed first, not last.

jonoalderson commented 2 years ago

Google uses the first few elements as the "site links" under the main page search result. So, yes it absolutely matters what order the posts are in. Also, logically, the most recently modified post should be at the top of the list, since it has the most recent content, and should be indexed first, not last.

There's no relationship between XML sitemaps (their order, or their contents), and the choice/presentation of site links - other than facilitating their discovery.

However, I do still agree that ordering by last modified (with some exceptions / special cases for the homepage, etc) is a better default; I'll make sure this is still on our radar internally.

shabnam611 commented 1 year ago

Please inform the customer of conversation # 1054950 when this conversation has been closed.

manuelRod commented 9 months ago

@Djennez any news on this feature request?

WpSEOit commented 8 months ago

we are interested too

jsayubi commented 8 months ago

We need this Feature Please!

Yvonne-Palanca commented 7 months ago

Please inform the customer of conversation # 1103732 when this conversation has been closed.

StueberMa commented 3 months ago

+1