Tarosky Sitemap WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-
Yet another sitemap plugin for WordPress.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/tarosky/taro-sitemap/releases/download/2.5.0/taro-sitemap.zipSitemap plugin.
Description
This plugin provides sitemap xml. Sitemaps below are available.
- Post type sitemap.
- Taxonomy sitemap.
- Google News sitemap(detail)
- Image sitemap(optional for sites with a large size of contents)
The remarkable features of this plugin are:
- Every type of sitemaps is a independent sitemap index.
- Sitemap are separated by YEAR-MONTH. This leverages MySQL index and reduce database cpu utilization under bot access. So effective for the sites with huge number of contents.
- Atatchment site map is also effective for the sites with a lot of attachment files.
Setup
- Go to
Admin screen -> Tools -> Sitemapand register site map which you want. - Get sitemap URLs and register them at Google Search Console.
Customize
Besides setting on admin screen, some hooks are also available.
News Sitemap
By default, news sitemap consists of the posts under specified post type(e.g. post). If you need some condition(e.g. only posts under a category, excluding some tags), use filter hook below:
/**
* Filter hook for WP_Query arguments for news sitemap.
*
* @param array $query_args Which passed to WP_Query
* @return array
*/
add_filter( 'hms_news_sitemap_query_args', function( $query_args ) {
// 1. Includes only posts under category "news"
// 2. Exclude posts with tag "sponsored"
$query_args['tax_query'] = [
[
[
'taxonomy' => 'category',
'field' => 'slug',
'terms' => 'news',
],
[
'taxonomy' => 'post_tag',
'field' => 'slug',
'terms' => 'sponsored',
'operator' => 'NOT IN',
],
],
];
} );
Installation
- Download zip and unpack it.
- Upload under wp-content/plugins
- Go to admin screen and activate it.
Frequently Asked Questions
Feel free to contact us in GitHub.
Changelog
2.4.0
- Bump PHP minimum version.
- Add filter for
2.0.1
- Bugfix of removing language attributes.
2.0.0
- Add noindex setting.
- Add OGP setting.
- Add meta setting.
1.0.0
- Initial release.
Releases
16 releases. Each count is every asset in that release; expand a row for the breakdown.
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.