Ok, Justin Timberlake may be bringing sexy back, but I’m bringing meta tags back. Before you start leaving comments about how irrelevant meta tags are, just know that I do agree. I don’t know if all search engines agree though.
WordPress may indeed be the absolute best blogging platform and CMS available, but theme designers often miss crucial elements that allow your WordPress blog to be fully SEO’d.
In order to add effective meta tags to your WordPress blog, open up your header.php (or whatever the header file is called) for the theme you’re currently using. You can open it up from the WordPress admin panel, or download it via FTP and edit it that way.
The header is where the following code will go.
So with that in mind, here is the way I’ve constructed my meta tags for this blog:
Don’t forget to put < and > on the ends of the meta tags before inserting them into the header file.
meta name="description" content="Make Money Online with Brandon Hopkins" /
The description is arguably the only important meta tag still being used by many search engines.
meta http-equiv="author" content="Brandon Hopkins" /
Do search engines care who the author is?
meta http-equiv="contact" content="brandonchopkins@gmail.com" /
I’m sure this is just spam food, but Gmail takes care of spam for me.
meta name="keywords" content="make, money, online, brandon hopkins" /
Some keywords for search engines to know what your site is about.
Here is my secret advice. It will work for your description and possibly your keywords, depending on how you structure your titles.
meta name="description" content="< ?php the_title(); ?>" /
This will take the description and add whatever the title of your post is. Just take a look at the page source for this post (Apple+U for FF Mac users).
See how the meta description of this post matches the post title…awesome. More descriptive words, but more importantly, we’re reducing the amount of duplicate content that every blog has. You now have unique meta description tags for every page on your site!
Let me know if you have any meta tag secrets!
I use the Add-Meta-Tags plugin (http://www.g-loaded.eu/2006/01/05/add-meta-tags-wordpress-plugin/) for description and keyword meta tags, and SEO Title Tag (http://www.netconcepts.com/seo-title-tag-plugin/)for my titles.
Thanks Brandon !
The wordpress plugin is useful but then you start going down that alley where you have to write unique title and desc tags for each page. Time-consuming, but arguably worth doing if you can.
Your option, however, is a great solution if time is not of the essence…for someone like me !
Paul
I wrote this code in the header tag.
ID ,'description',true); ?>">
ID ,'keywords',true); ?>">
This code allows me to use the custom fields to write a different meta description and keywords for each post.
It’s working so far. I used to use a meta tag plug-in but for some reason it wasn’t working well for my site.
Oops, messed up on the code tag. This is better, I think.
<meta name="description" content="<?php echo get_post_meta($post->ID ,'description',true); ?>">
<meta name="keywords" content="<?php echo get_post_meta($post->ID ,'keywords',true); ?>">
Thanks for the suggestions everyone. I’ll think about the different ways to add meta tags and test it on a few sites to see which ways I like best. I’ll post about it again at a later date.