Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

when creating pages, the title normally show as a link and as a title on the page it displayed when click on. My question is how do i remove the title from displaying on my page. for example when a page like "contact us" is created, the page itself will have "contact us" display in either h1 or h2 tag. how do i make the "contact us" on the page not to display.

share|improve this question

1 Answer

Set the title as 'Contact'. Then use the following code:

<?php
add_filter('the_title','remove_title');

function remove_title($title){
    if(!is_page('Contact')){
        return $title;
    }
}

Put this code in your functions.php file.

share|improve this answer

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.