>
Download This Plugin | |
Download Elegant Themes | |
Name | Sewn In XML Sitemap |
Version | 2.0.2 |
Author | Jupitercow |
Rating | 100 |
Last updated | 2015-02-13 09:38:00 |
Downloads |
194
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Sewn In XML Sitemap plugin added 8 bytes of resources to the Home page and 16 bytes of resources to the sample Post page.
Sewn In XML Sitemap plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Sewn In XML Sitemap plugin ads no tables to your Wordpress blog database.Simple way to automatically generate XML Sitemaps when a page or post is saved. Very simple, no cruft or extra features you won't use. There are two main customizations available.
It also works well with our Sewn In Simple SEO plugin. When both are installed, they integrate together.
By default only pages and posts are added, but you can remove either of those and/or add more using this filter:
/**
* Add a post type to the XML sitemap
*
* Takes the default array('post','page') and adds 'news' and 'event' post types
* to it. Returns: array('post','page','news','event')
*
* @param array $post_types List of post types to be added to the XML Sitemap
* @return array $post_types Modified list of post types
*/
add_filter( 'sewn/seo/post_types', 'custom_seo_post_types' );
function custom_seo_post_types( $post_types )
{
$post_types[] = 'news';
$post_types[] = 'event';
return $post_types;
}
/**
* Completely replace the post types in the XML sitemap
*
* This will replace the default completely. Returns: array('news','event')
*
* The result is to remove 'post' and 'page' post types and to add 'news' and
* 'event' post types
*
* @param array $post_types List of post types to be added to the XML Sitemap
* @return array $post_types Modified list of post types
*/
add_filter( 'sewn/seo/post_types', 'custom_seo_post_types' );
function custom_seo_post_types( $post_types )
{
$post_types = array('news','event');
return $post_types;
}
A checkbox is added to each post type that is included in the sitemap. Checking it will remove that specific item from the sitemap.
This checkbox also removes posts from wp_list_pages, you can turn that off using this filter:
add_filter( 'sewn/sitemap/wp_list_pages', '__return_false' );
Works with the Sewn In Simple SEO plugin. When installed, the XML sitemap checkbox integrates with the SEO fields and this plugin will use the SEO post types. The goal is to keep things very simple and integrated.