wordpress meta tag descriptions

One item that doesn’t come standard with the wordpress software is the ability to automatically have specific descriptions for each of your pages that actually describe what you have.

Here’s how to grab:

  • the wordpress default description for your home page
  • the category description you have set up when you added the categories (and the description in your control panel)
  • the excerpt from each of your posts

Simply edit the file header.php in your themes - go to wp-content/themes/default/header.php and edit the file header.php

Then, below your <title> tag, add in the following:

<meta name=”description” content=”<?php if ( is_single() ) {
        single_post_title('’, true);
    }

elseif ( is_category() )

{
echo category_description();
}
else {
        bloginfo(’name’); echo ” - “; bloginfo(’description’);
    }
    ?>” />

And that’s how to have unique descriotions for each of your pages for wordpress seo - don’t forget to change the default description of your blog in your wordpress admin panel because it is generally set as “just another wordpress blog” and you don’t want that to display in your meta tag description for your home page.

Your comments on wordpress meta tag descriptions



FREE! SEO Tutorials !
($97 value)

First Name
Your Email



SEO Videos seo tutorial videos
SEO tutorials



SEO Categories


Archives