Skip to content

Commit

Permalink
Merge pull request #172 from Automattic/update-readme
Browse files Browse the repository at this point in the history
Migrating plugin instructions from old VIP Docs site to plugin's README.md
  • Loading branch information
yolih authored Jan 16, 2023
2 parents 4bcae0c + eb275f0 commit 8e15d3b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Comprehensive Sitemaps
===========

Comprehensive sitemaps for your WordPress.com VIP site. Joint collaboration between Metro.co.uk, WordPress.com VIP, Alley Interactive, Maker Media, 10up, and others.
Comprehensive sitemaps for your WordPress VIP site. Site-wide sitemaps on WordPress.com includes 1,000 entries by default. This plugin allows you to include all the entries on your site into your sitemap.

Joint collaboration between Metro.co.uk, WordPress.com VIP, Alley Interactive, Maker Media, 10up, and others.

## How It Works

Expand Down Expand Up @@ -31,6 +33,8 @@ Here's how the default WP-Cron approach works:
* Move on to the next month and repeat.
* Move on to next year when we run out of months.

The Comprehensive Sitemap plugin will only update the standard sitemap. The [news sitemap ](https://en.support.wordpress.com/sitemaps/#news-sitemaps) will only contain posts from the last two days, based on [Google’s guidelines](https://support.google.com/news/publisher/answer/74288?hl=en).

## CLI Commands

The plugin ships with a bunch of wp-cli commands to simplify sitemap creation:
Expand All @@ -46,6 +50,10 @@ usage: wp msm-sitemap generate-sitemap
See 'wp help msm-sitemap <command>' for more information on a specific command.
```

## Custom post types

Include custom post types in the generated sitemap with the `msm_sitemap_entry_post_type` filter.

## Filtering Sitemap URLs

If you need to filter the URLs displayed in a sitemap created via the Comprehensive Sitemap plugin, there are two considerations. First, if you are filtering the individual sitemaps, which display the URLs to the articles published on a specific date, you can use the `msm_sitemap_entry` hook to filter the URLs. An example for a reverse-proxy situation is below:
Expand Down

0 comments on commit 8e15d3b

Please sign in to comment.