Devi crearti un plugin o funzione tipo la seguente:
[PHP]
<?php
/*
Plugin Name: Custom tag URLs
Description: Toglie lo slug /tag/ dai tag.
*/
// applicata quando si chiama get_tag_link() e add_filter('tag_link', 'my_tag_link', 10, 2);
/** Ritorna il link a tag. Invece di /tag/nome-tag/ torna /nome-tag */
function my_tag_link($tag_link, $tag_id) {
$tag_base = get_option('tag_base');
if ($tag_base) {
$tag_link = preg_replace('@^' . preg_quote($tag_base, '@') . '@', '', $tag_link);
}
return '/' . trim($tag_link, '/');
}
[/PHP]