Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a filter to index by year-month #152

Open
yolih opened this issue Aug 30, 2019 · 2 comments
Open

Add a filter to index by year-month #152

yolih opened this issue Aug 30, 2019 · 2 comments

Comments

@yolih
Copy link
Contributor

yolih commented Aug 30, 2019

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

@GaryJones
Copy link
Contributor

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

@yolih
Copy link
Contributor Author

yolih commented Sep 4, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants