Hide page title in WordPress 3.0

the videos shows options that come with the headway theme, in order to see them you must use the headway theme.
it’s not a build in functionality of WordPress, however you can use the_title filter to replace or remove the title for a specific post based on custom fields values like so:

function my_title_filter($title){
    global $post;
    $custom_t = get_post_meta($post->ID, 'my_title', true);
    if (empty($custom_t){
        return $title;
    }else{
        if ($custom_t == 'remove'){
            return '';
        }else{
            return $custom_t;
        }
    }
}
add_filter( 'the_title', 'my_title_filter' );

and after you add this code to your theme’s functions.php file
all you need to do is edit the post/page you want to replace or remove the title and create a custom filed named “my_title” and enter your “new title” or “remove”
to remove completely.

Hope this helps

Leave a Comment