Before There Was A Geekette, There Was a Girl
RSS:
Publications
Comments

WordPress: Using the_excerpt as the Description

As I have noted on other posts (see the Googlebot Meta Tags post), the description element is another part of HTML that has uses with search engines. Well designed websites use the description element not only for keywords and a simple description of the page, but also it can control how the page shows up in search engines (once again, a better explanation of this can be found in the Googlebot Meta Tags post )

For WordPress users, there are various plugins that can be used. Another way to control the description of a post is to alter the header.php of the theme to use the_excerpt for the description.

The following is the code that would produce this:

<meta name=”description” content=”<?php the_excerpt() ?>” />
  • Share/Bookmark

43 Comments to WordPress: Using the_excerpt as the Description

  1. 2009-10-21 at 12:57 pm | Permalink

    Thank you for the quick but efficient tutorial – great stuff :)
    Jeffrey´s last blog ..Went To SeaWorld With The Family My ComLuv Profile

  2. 2009-09-19 at 7:17 am | Permalink

    Thanks for all the tips…learning about SEO can be a bear, and I need all the help I can get! Grace
    Free Article´s last blog ..Fat Burning Diets How do You Choose the Right One For You My ComLuv Profile

  3. 2009-09-19 at 7:11 am | Permalink

    That is a really good tip. The more content that you can add for search engines to classify your site the better.

  1. on 2009-06-16 at 8:40 pm
  2. on 2009-06-14 at 9:46 am
  3. on 2009-06-7 at 9:10 pm

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Please understand with hundreds of SPAM comments, it takes a while to sort through to approve the good comments. Sometimes, by accident, some good comments accidentally get marked as spam. Please let us know if your comment did not get posted. Also, if your comment has a link to it or anything else in it that would make it seem like spam, it will be deleted. So please post a real comment and not one that is only made to link to a site only. Otherwise, it could get deleted.