WordPress SEO – keywords

I’ve been looking for a light WordPress SEO – Search Engine friendly plugin, but nothing quite cut it for me. So, I decided to use the excerpt text to insert into meta keywords, using this line of code in the header:

<meta name="keywords" content="<?php $excerpt = strip_tags(get_the_excerpt()); echo $excerpt; ?>"/>

It works really well, and no plugins needed!

Advertisement

One Response to “WordPress SEO – keywords”

  1. potatograss Says:

    Having done that, I noticed that keywords were appearing in the blog rss feed (rss uses the excerpt as a summary of the post)… Since that particular wp installation didn’t need rss feeds, I disabled it as per this instruction:

    http://wpengineer.com/disable-wordpress-feed/


Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.