• WordPress SEO Optimization Techniques Subscribe to RSS
    • Blog
    • Archives
    • Directory
    • WordPress SEO
    • WordPress Themes
      • Blog > WordPress > Removing the “private” and “protected” from your post title
        • Removing the “private” and “protected” from your post title

        • - WordPress by default adds this to your post and page titles, automatically -

        • WordPress HackHave you ever defined a specific blog post or page as, private or protected in WordPress? If you have, did you know that WordPress by default, appends "Private" or "Protected" to those post and page titles? If you prefer not to display this in your titles, there is a very easy hack to get rid of them.

          To apply this WordPress hack, you simply paste the following code into your functions.php file. After you have pasted code into the proper file, save the file to apply the hack to your posts and pages. That's it, your done!

          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');

          Credit for this hack, goes to Chris Coyier.

          Hope this blog post was helpful to you, "Removing the "private" and "protected" from your post title" Be sure to share this post with your friends on Twitter. Furthermore, I appreciate your time that you have spent here!

          Spunky Jones.

          If You Enjoyed, Please Share:
          • Digg
          • del.icio.us
          • StumbleUpon
          • Technorati
          • NewsVine
          • Reddit
          • Twitter
          • Facebook
          Related Posts:
          1. Sub Title Plus Plugin for WordPress
          2. Introducing, the Open Post plugin for WordPress
          3. Golden Harvest Classic WordPress Theme
          4. Dealing with WordPress “Missed Schedule”
          5. How to Remove the WordPress Generator
          6. Releasing WordPress Themes on Spunky Jones Blog
          7. Follow these Easy Steps to Customize Your WordPress 404 Page!
          8. How to remove /category/ from your WordPress URL
          9. How to Remove, “Comments are Closed” Message in WordPress
          10. How to Deal with Your 404 Page Errors
          Top Incoming Search Queries:
        • Posted on 1st June 2010 by Spunky Jones in WordPress
      • Google Custom Search
      • Navigation

        • About
        • Blog Archives
        • Contact
        • List of Blog Authors
        • Privacy Policy
        • Upcoming Scheduled Posts
        • WordPress SEO
      • Popular Posts

        • Adjusting Your Monitor's Brightness...
        • Protecting Your Email Address from Bots...
        • How to Combat Spam with the Akismet...
        • How to Remove, "Comments are Closed"...
        • Robots.txt for WordPress SEO
        • Introducing our newest plugin for...
        • Strong Tag versus Bold Tag for SEO
        • How to get that new site indexed fast...
        • Breaking SEO Strategy Down into Three...
        • Release the idle processes on Windows...
      • Category Topics

        • Blogging
        • Business World
        • Making Money Online
        • Ramblings
        • SEO
        • Social Networking
        • Technology
        • Web Directories
        • Webmaster World
        • WordPress
        • WordPress SEO Optimization
      • Spunky has Faster Loading Speeds

        Many of you are noticing faster loading speeds on Spunky Jones. This is due to a little tweaking and changing over to Gotekky for my web hosting provider.
      • WordPress Plugins

      • Directory Submissions

        Madmouse Web Directory - US
        Deep Link Listing Directory
        Madmouse Link Directory - India
      • Free SEO Tools

        • Canonical Duplicate Fixer
        • META Language Tag Generator
  • Copyright © 2008 - 2010 Spunky Jones: WordPress SEO Optimization Techniques
    Designed by: Spunky Jones | Coded by: PSD to HTML