WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to not show the page title on certain pages, including home, a custom post types page, and a category page (/category/blog). I came up with this, and it's working for everything but the blog page.

if ( !is_front_page()  && !is_post_type_archive('location') && !is_page_template('category-blog.php')) :

<div class="page-title">
<div class="row">
<div class="col-sm-5 col-sm-offset-3"><h1><?php the_title(); ?></h1></div>
</div><!-- /row -->
</div><!-- /title -->

share|improve this question
Do you mean remove it from the <title> tag? or in the loop? The "category/blog" means there's a category with the name "blog"? – 1fixdotio Mar 6 '14 at 15:51
Not THE title, but a title I am adding to pages. I got it figured out finally. !is_category( 'blog' ) ) – jerry Mar 6 '14 at 15:55
up vote 0 down vote accepted

Depends on what you want to do but most of the time to target blog page you will have to use :

if( is_home() || is_front_page() )

I know this could be a little bit confusing but check this link. !is_home() might be the condition you're looking for.

share|improve this answer
Thanks, I appreciate your help – jerry Mar 7 '14 at 16:36

Your Answer


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.