Closed clivewalker closed 2 years ago
Having the same issue. That is because the plugin uses the date field or modified date of the first page in the list for all items.
@clivewalker You can overwrite the snippet in /site/snippets/feed/sitemap.php
and replace
<lastmod><?= $modified ?></lastmod>
with
<lastmod><?= date('c', $item->modified()) ?></lastmod>
(Or if you are using a field, with $item->datefieldname()->toDate('c')
.
OK, that's fixed it. Thank you.
thanks @clivewalker @texnixe for spotting this issue and providing a fix. sorry it took me so long to create a new release. 🙇
The Last Modified date in my sitemap.xml appears to be the same for all pages. The pages were created on different dates/times. Do I need to do something else here to output the accurate Last Modified dates for each page?
Thanks.