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-09-19 at 7:04 am | Permalink

    WP is good for Googlebot Meta Tags
    Article Directory´s last blog ..Get the Unique Taste of Praline Pecans My ComLuv Profile

  2. 2009-09-13 at 3:32 pm | Permalink

    Good read, thanks.

  3. 2009-07-20 at 1:05 pm | Permalink

    Keep working, great job, I love it!

  4. Seo's Gravatar Seo
    2009-07-17 at 2:02 pm | Permalink

    Yes, Google does use and weigh all of the Meta data that you provide. Maybe not as heavily as it once did when people filled their description and keywords with 50 million terms and phrases, but it still does. This is a useful technique.

  5. 2009-07-17 at 8:05 am | Permalink

    WordPress: Using the_excerpt as the Description » Aleeya dotNet great article thank you.

  6. 2009-07-9 at 4:42 am | Permalink

    handy code!thanks Aleeya. yeah, been using AIO SEO myself..

  7. 2009-07-1 at 4:42 pm | Permalink

    Great tip. I often find that if I put in a good meta tag description, Google and other Search Engines will end up using it in their listings.

  8. 2009-07-1 at 12:28 pm | Permalink

    Thats a pretty good tip to help onese website to rank. I am curently working on a blog with fishing equipment and I am aiming to get more trafic. Thank you for your tips.
    Abu Reels´s last blog ..Abu Garcia Revo Toro 50 HS My ComLuv Profile

  9. 2009-06-27 at 7:44 pm | Permalink

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

  10. 2009-06-25 at 12:04 pm | Permalink

    Great site very helpful information

  11. 2009-06-25 at 12:53 am | Permalink

    Yes of course its a great tool to use, well at least i think that. Not everyone does. Lots of people have different opinions, to me its a nice way, because blogging helps me share people more about rings that we sell.

  12. 2009-06-24 at 4:55 pm | Permalink

    good tip, thanks, i must check it

  13. 2009-06-24 at 9:17 am | Permalink

    Interesting idea..I’ll give it a try. Thanks for the code!

  14. 2009-06-23 at 2:45 am | Permalink

    Geat post, thanks for sharing.

  15. 2009-06-20 at 11:15 am | Permalink

    This is a really beautiful theme, what is it?

  16. 2009-06-16 at 2:25 pm | Permalink

    Super handy! thanks for the post

  17. 2009-04-23 at 6:20 am | Permalink

    This is a very good tip. Are you sure the current version of Wordpress does not already do this?

    Eric

    MapPoint 2009’s last blog post..MapPoint User Survey

  18. 2009-04-13 at 3:17 pm | Permalink

    great article and awesome comments. thanks everyone!

  19. 2009-03-31 at 8:14 am | Permalink

    I located your blog on google and really appreciate your posts. I have added you to my Google News Reader. I really look forward to reading more posts from you.

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.