msm-sitemap icon indicating copy to clipboard operation
msm-sitemap copied to clipboard

Add a filter to index by year-month

Open yolih opened this issue 6 years ago • 2 comments

The default format for output is /sitemap.xml?yyyy=2019&mm=08&dd=03

and there is an existing filter to move the year to the URL /sitemap-2019.xml?mm=08&dd=03

But an additional filter that provided the ability to index the document tree by year&month /sitemap.xml?yyyy=2019&mm=08 or by year would be very useful /sitemap.xml?yyyy=2019

98212-zen p9zhOE-Mi-p2

yolih avatar Aug 30 '19 19:08 yolih

What's the use case for adding this? What's the intended goal?

GaryJones avatar Sep 03 '19 08:09 GaryJones

The intended goal of indexing by year-month is to consolidate indexed sitemaps into files by month instead of files by day and thereby reducing the total number of indexed sitemaps.

The request for this came from a client with a large number of posts that go back years. The MSM plugin generates a sitemap for each day with published content, and in this case that translates to 4,304 sitemaps. The client is using Google Search Console which only allows visibility of 1000 sitemaps, so they are trying to find a way to have no more than 1000 indexed sitemaps for their site in total.

yolih avatar Sep 04 '19 00:09 yolih