Simple Sitemap Pro Updated to v0.4

An update to the Simple Sitemap Pro plugin has just been released.

This update adds a filter for post titles so that long titles can be shortened for specific posts. Quite often you’ll have one or more post titles that are very long and would’t display very well in a sitemap. With the new filter you can change the sitemap title for any post to whatever you want.

Here is an example of how to use this new filter:

function filter_title_text($title_text) {

	// Note: The titles are case sensitive so make sure you match the title exactly!
	if( $title_text == 'Long Post Title We Want to Shorten' )
		$title_text = 'Shorter Title';

	if( $title_text == 'Another Long Post Title That Needs Shortening!' )
		$title_text = 'Another Shorter Title';

	return $title_text;
add_filter( 'simple_sitemap_pro_title_text', 'filter_title_text' );

See the plugin documentation for more details.

Leave a Reply

Your email address will not be published. Required fields are marked *