Category Archives: Uncategorized

Remove Protected and Private title prefix

If you use Private or Password Protected posts or pages you might want to remove that awful title prefix

  • Private: …
  • Protected: …

To remove the title prefix you can simply add in your WordPress theme functions.php file, the following code

function the_title_trim($title)
{
  $pattern[0] = '/'.__('Protected').': /';
  $pattern[1] = '/'.__('Private').': /';
  $replacement[0] = ''; 
  $replacement[1] = ''; 
  return preg_replace($pattern, $replacement, $title);
}
add_filter('the_title', 'the_title_trim');

This code will remove the title prefix for Private and Password Protected pages and posts, independently by the language used in the WordPress installation.

Kony2012.com – Cover the night April 20th

Get your kit NOW!

  

http://www.kony2012.com
http://www.invisiblechildren.com
http://www.facebook.com/KONY20121

KONY 2012: Part II – Beyond Famous

KONY 2012: Part I – INVISIBLE CHILDREN

Disclaimer: Invisible Children does not condone any type of illegal activity, including vandalism or trespass, in the distribution of KONY 2012 materials. Our company accepts no liability for consequences, including loss or damage, that may arise in connection with their distribution. Any action you take in relation to KONY 2012 is strictly at your own risk. Everyone can agree that Kony must be stopped, so just ask for permission to post these materials.