/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function the_title_trim($title) { $title = attribute_escape($title); '#Protected:#', '#Private:#' ); '', // What to replace "Protected:" with '' // What to replace "Private:" with ); return $title; } add_filter('the_title', 'the_title_trim');
URL: http://css-tricks.com/snippets/wordpress/remove-privateprotected-from-post-titles/