[wp-trac] [WordPress Trac] #52099: Sitemaps "Last Modified" (lastmod) tag

WordPress Trac noreply at wordpress.org
Wed Dec 16 23:44:32 UTC 2020


#52099: Sitemaps "Last Modified" (lastmod) tag
-------------------------+-----------------------------
 Reporter:  junaidbhura  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Sitemaps     |    Version:  5.6
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 Sitemaps currently only support the "Location" tag (`loc`). This ticket
 adds support for the "Last Modified" tag.

 This is how it works:

 **1. Posts**

 This is probably the easiest - it just takes the post_modified_gmt value
 of the post and creates a `lastmod` tag.

 **2. Taxonomies**

 It gets the latest modified post in the taxonomy and creates a `lastmod`
 tag based on its last modified value.

 **3. Users**

 It gets the latest modified post by a user and creates a `lastmod` tag
 based on its last modified value.

 **4. Indices**

 Sitemap indices / indexes work in this way:

 1. If its a post index - get the last modified date of the last updated
 post in the post type
 1. If its a taxonomy index - get the last modified date of the last
 updated post which is associated with any term in the taxonomy
 1. If its a user index - get the last modified date of the post type
 "post" - since all posts are associated with users

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52099>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list