Ok, then.....
Standard Function:
<?php
function the_title_trim($title=null)
{
$title = the_title('','',false);
$pattern[0] = '/Protected:/';
$pattern[1] = '/Private:/';
$replacement[0] = ''; // Enter some text to put in place of Protected:
$replacement[1] = ''; // Enter some text to put in place of Private:
echo preg_replace($pattern, $replacement, $title);
}
?>
Which you'd then use in place of the regular title using...
Standard function - additional:
<?php the_title_trim(); ?>
Alternatively, use a filter to apply the changes to all titles...
As filter function:
<?php
function the_title_trim($title)
{
$pattern[0] = '/Protected:/';
$pattern[1] = '/Private:/';
$replacement[0] = ''; // Enter some text to put in place of Protected:
$replacement[1] = ''; // Enter some text to put in place of Private:
return preg_replace($pattern, $replacement, $title);
}
add_filter('the_title', 'the_title_trim');
?>
In this case you don't have to add the call to the function... (and note the code is different for this usage). Copy and paste whichever you prefer into your theme functions.php
Both were tested before posting..
Let me know how they work out for you.