is_home () not working for posts page
-
I’m using the following code to set my page title. I’m using a static front page and have set my posts page accordingly. is_home() should work on the posts page (annamayer.com/news), however, it doesn’t.
Any ideas on what to change to correct this?
<title> <?php bloginfo('name'); if ( is_404() ) : _e(' » ', 'ProPhoto'); _e('Not Found', 'ProPhoto'); elseif ( is_front_page() ) : _e(' » ', 'ProPhoto'); bloginfo('description'); elseif ( is_home() ) : _e(' » ', 'ProPhoto'); bloginfo('description'); else : wp_title(); endif; ?> </title>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘is_home () not working for posts page’ is closed to new replies.