If/else statement for specific WordPress page title
You can determine whether the blog is displayed using is_home(): <?php if ( is_home() ) { echo ‘Blog’; } else { the_title(); } ?> Be aware that the the_title() function only displays the title of the current post. If you’re on any other kind of page, such as the blog, a category archive, a date … Read more