Adding Post Titles to Your Title Tags

change-wordpress-title-tag

change-wordpress-title-tag Improve your SEO score by incorporating blog post titles into your <TITLE> tag of your WordPress blog.  How is that for a long sentence?

Log into WordPress and edit your theme…look for header.php and change your title code to the following:

<title><?php if(is_home()) { echo bloginfo('name'); echo ' | '; echo bloginfo('description'); } else { echo single_cat_title("", false);echo wp_title(' | ', false, right); echo bloginfo('name'); } ?></title>

This will, for each post, automatically plop your post name into your TITLE tag, helping with SEO relevancy. 

Leave a Reply

Your email address will not be published. Required fields are marked *