Google XML sitemaps fix for custom taxonomies Blog

Using Google XML sitemaps for you WordPress site? Using custom taxonomies?
If yes, visit this url: wp-admin/plugin-editor.php?file=google-sitemap-generator/sitemap-core.php&a=te&scrollto=36017 and apply the following:

OPEN

google-sitemap-generator/sitemap-core.php

FIND

$this->AddUrl(get_term_link($term,$term->_taxonomy),$term->_mod_date ,$this->GetOption("cf_tags"),$this->GetOption("pr_tags"));

 

REPLACE WITH

$this->AddUrl(get_term_link($term->slug,$term->_taxonomy),$term->_mod_date ,$this->GetOption("cf_tags"),$this->GetOption("pr_tags"));

 

This fix will use the correct permalinks instead of the ugly taxonomy=mytax&tax=foobar
Check it out! http://www.mijnpress.nl/sitemap.xml


Suggestie? Vraag of opmerking? Laat het ons weten!

Plaats hier je bericht

Reacties (0)