Ogni volta che si definisce un post protetto da password o privato, WordPress aggiunge automaticamente le voci “Protetto” o “Privato” nel titolo dei post del vostro blog. Se non si desidera utilizzare questa funzione, applicate questo piccolo hack.
function the_title_trim($title) {
$title = attribute_escape($title);
$findthese = array(
‘#Protected:#’,
‘#Private:#’
);
$replacewith = array(
”, // What to replace "Protected:" with
” // What to replace "Private:" with
);
$title = preg_replace($findthese, $replacewith, $title);
return $title;
}
add_filter(‘the_title’, ‘the_title_trim’);
fonte: www.sastgroup.com







grazie, mi