• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
Daily Blog Tips

Daily Blog Tips

How to make money from your blog

  • Home
  • Popular
  • Contributors
  • About
  • Contact / Advertise
  • Blogging
  • Marketing
  • Design
  • Money
  • Reviews
  • Productivity
  • Software
  • Technology

Optimal Title Tag for WordPress

By Mark 22 Comments Reading Time: < 1 minute

Some time ago I wrote a post titled “Keep your Title Tags short and pertinent“ÂÂ outlining the best practices for Title tags. Most blogging platforms come with a standard Title tag structure that places the blog name and post title on single post pages. Suppose you have the “ABC Blog” and you just published a post called “Top 10 Firefox extensions”. In that case your Title tag for that single page would be “ABC Blog – Top 10 Firefox extensions”.

This Title structure is good but not optimal. The best possible Title tag for a single blog post is the title of the post alone. The name of the blog will increase the number of keywords (reducing the value of each one) and it might not be related to the post content at all.

Below you will find the code that I use for my Title tag. This code will display the blog name on the home page, the post title on single post pages and the blog name plus category name for category pages.

<title><?php if (is_home () ) { bloginfo(‘name'); }
elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo(‘name'); }
elseif (is_single() ) { single_post_title();}
elseif (is_page() ) { single_post_title();}
else { wp_title(‘',true); } ?></title>

Don’t have a blog yet? Click here to start yours in 4 easy steps!

Optimal Title Tag for WordPress Photo

About Mark

Mark is an digital entrepreneur from New York City who recently acquired DBT. He started his ventures buying growing then selling several businesses and content blogs on Flippa. A perfect night for him constitutes pizza, wine, slow jazz and WordPress! He's an SEO expert and a growth strategist. When he's not working on his businesses he enjoys sharing his learned lessons with the DBT community.

Reader Interactions

Comments

  1. Avatar of Michael (MKR)onMichael (MKR)on says

    at

    I’ve been using Atahualpa’s SEO options page for this. Very handy theme.

    Reply
  2. Avatar of MarkonMarkon says

    at

    I just got an email in my inbox talking about search engines and title tags and how to optimize them but I wasn’t sure how to do it in WP till I googled “where is my title tag in wordpress” and came across your article here.

    Reply
  3. Avatar of ManionManion says

    at

    Thank you for this wordpress titletag code.. just used this on my blog and it is working perfect. The ‘archives’ and the ‘author ‘ section do not show any title tag, but that’s ok, not a big deal. Thanks again.

    Reply
  4. Avatar of JononJonon says

    at

    A really great tip! It has improved my SEO rankings!

    Reply
  5. Avatar of Dan NonDan Non says

    at

    Thanks for this code, I got it to work but only if I take away the title closing tag I am not sure why it doesn’t work when the closing tag is there.

    Reply
  6. Avatar of Poh EeonPoh Eeon says

    at

    Just use “all-in-one-seo-pack” plugin for WordPress blog.
    It let you configure the title dynamically.

    Reply
  7. Avatar of ethelonethelon says

    at

    CHECK OUT A NEW BLOG…WWW.KOOLSTER.NET
    SHARE YOUR IDEAS ABOUT SOCIALLY RELEVANT THINGS!

    Reply
  8. Avatar of Damn PrinteronDamn Printeron says

    at

    Thanks just what I was looking for.

    Reply
  9. Avatar of PhilonPhilon says

    at

    Hi there,

    Reply
  10. Avatar of DanielonDanielon says

    at

    Programlar, from my experience the optimal title tag for the homepage is just the blog name.

    Reply
  11. Avatar of programlaronprogramlaron says

    at

    What about page title? It will display your blogs name only without any information about the page with the code above.

    Reply
  12. Avatar of Max PoolonMax Poolon says

    at

    Sorry, last comment post removed the HTML

    Reply
  13. Avatar of Max PoolonMax Poolon says

    at

    Fixing Daniels above code snippet, the answer to Vincent and my question would be:

    Reply
  14. Avatar of Max PoolonMax Poolon says

    at

    I second what Vincent asks? What about page title? For example your about page should read ‘About’, ‘Daily Blog Tips – About’, or some permutation of the sorts.

    Reply
  15. Avatar of Vincent ChowonVincent Chowon says

    at

    What about page title? It will display your blog’s name only without any information about the page with the code above.

    Reply
  16. Avatar of WallerBlogonWallerBlogon says

    at

    Very nice. I’ve never really though about keywords being diluted by my page title. I’ve just implemented this on WallerBlog.com Thanks for the tip!

    Reply
  17. Avatar of DanielonDanielon says

    at

    John, dont forget to use Jeromes keywords to produce a dynamic Meta Keywords tag. It works really well.

    Reply
  18. Avatar of JohnonJohnon says

    at

    That is a really great tip. I use a plugin called “Jeromes Keywords” for all of my posts. Your code piece will make a nice addition. Thank you.

    Reply
  19. Avatar of DanielonDanielon says

    at

    Lionel, yeah you can insert that line to get the name automatically, but I left the written name cause I also experimented with different descriptions and combinations to see what would work best.

    Reply
  20. Avatar of FanatykonFanatykon says

    at

    I wrote sth similar on opn wp

    Reply
  21. Avatar of sujan patelonsujan patelon says

    at

    I am using SEO Title Tag plugin for wordpress and it pretty much does the same thing. I’d much rather use the code above.

    Reply
  22. Avatar of Lionel YoungonLionel Youngon says

    at

    Great tip! If you change your “echo ‘Daily Blog Tips’” above to bloginfo(‘name’), you can help people be more lazy and just copy and paste. Like this:

    Reply

Leave a Reply Cancel reply

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

Primary Sidebar

Trending Today

Popular

  • 28 Ways to Make Money with Your Website 514 Comments
  • 43 Web Design Mistakes You Should Avoid 474 Comments
  • 4 Steps to Increase Your Blog Traffic 188 Comments
  • How to Find Advertisers for Your Website 126 Comments
  • Top 25 SEO Blogs 243 Comments
  • 101 Blog Tips I learned 177 Comments
  • 30 Traffic Generation Tips 351 Comments
  • 6 Ways to Speed Up Your Site 51 Comments
  • 9 Hacks to Show Readers Your Best Stuff 21 Comments
  • 50 Simple Ways to Gain RSS Subscribers 145 Comments
  • The Best Website Taglines 127 Comments
  • What Is Success? 57 Comments
  • How to setup a 301 Redirect 52 Comments
  • The 7 Characteristics of Good Domains 76 Comments
  • 7 Ways to Promote your Site 133 Comments
  • Top 25 Celebrity Blogs 44 Comments
  • What Is A Blog? 81 Comments
  • Blog Setup: 40 Practical Tips 57 Comments
  • 10 Tips To Write Your Most Popular Post 79 Comments
  • The Blog Post Checklist 75 Comments
  • Interview: 12 Top Online Entrepreneurs 98 Comments
  • What Is Bounce Rate? 42 Comments
  • 20 SEO Terms You Should Know 28 Comments
  • How To Choose A Blog Name 15 Comments
  • 10 Tips to Sell Your Website on Flippa 37 Comments
  • Top 25 Web Design Blogs 80 Comments

Online business done right. Take your marketing efforts to the next level with tips and resources to get visitors to your website.
As featured
CNBC copyblogger problogger Entrepreneur Lifehacker Hubspot Business Insider Wordpress Showcase
Privacy Policy| Terms of Service | About | Contact

777 Brickell Ave #500-14648, Miami, FL, 33131, US
DBT Logo
DBT is an independent website. The views expressed on this site may come from individual contributors and do not necessarily reflect the view of DBT or any other organization. All Content Copyright ©2006-2023. Daily Blog Tips unless otherwise noted or credited.