Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/evermade/yoast-seo-multisite-subdirectory-sitemaps/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Adds links to all subsite sitemaps to the main site's sitemap index automatically.
When to use this plugin?
- You have a multisite that is not subdomain
subsite.mainsite.fiinstallation but subdirectory installationmainsite.fi/subsite. - You are using Yoast SEO
Installation
- Insert this directory into
/wp-content/plugins/(you can also download it as zip file through WordPress Plugin view) - Activate
Notice that this plugin won't save anything to your installation so you need to keep this plugin active to keep inclusions working.
Customization
You can exclude sites by adding site ids as an array to filter em_yoast_seo_multisite_subdirectory_sitemaps/excluded_site_ids. Note that sites where public is not set to 1 are automatically excluded.