Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I can't find the option to hide the page title. Is there some other plugin required to get this functionality?

If you look in this video video you can see the option to set the page title. I don't have this option.

I'm not looking for a code solution here, I need something which will allow end users to hide the title.

share|improve this question
1  
The video linked is for the Headway theme, are you using the Headway theme? –  t31os Feb 18 '11 at 11:52
    
It's a theme-dependant feature as t31os said. –  Kaaviar Feb 18 '11 at 11:57
add comment

1 Answer

up vote 2 down vote accepted

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

share|improve this answer
    
That looks like a reasonable solution. Thanks. –  Dylan Spencer James Feb 18 '11 at 13:42
    
Glad I could help. –  Bainternet Feb 18 '11 at 13:44
    
Just tried this, but the custom fields don't allow you to put a null value in them. Putting in a nbsp; results in a linked nbsp; on the front-end. –  Dylan Spencer James Feb 18 '11 at 13:48
    
why would you put null value? to replace just type the new title, to remove just "remove" and if you don't want to change then don't do anything. –  Bainternet Feb 18 '11 at 13:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.