One thing which I have seen many bloggers missing completely(including me uptil now) is the category description field. Most bloggers I have seen create relevant categories but forget to fill the description field either due to ignorance or delibrately to save time. But this field can also be important both in respect to SEO and also user experience enhancing effect.
In terms of user experience enhancing effect, many times users are not able to understand what type of posts are included in the category you have created. So its better to give a proper description to each category. And in terms of SEO effect, most SEO plugins of SEO including All in One SEO and Platinum SEO Pack pick category description as meta description tags for the category archives.
Now the question arises how to to show category description on the category archive page. The following code when used in your theme file pulls the category description and shows it to the user.
|
1 2 3 |
<?php
echo category_description();
?> |
Now this code should go into the archive.php of your theme file which is responsible for generating the category list of posts. Check with your theme for the proper location where you should insert this code.
And for SEO effect, if you are using plugins like All in One SEO or Platinum SEO plugins, they will pick up the category description automatically and if that’s not the case, you can use the following code in your header.php
|
1 2 3 4 5 |
<?php
/* If this is a category archive */
if (is_category()) { ?>
<meta name="description" content="<?php echo category_description(); ?>" />
<?php } ?> |
Remember this code should appear before </head> in header.php
So now I hope you will use the above method to make your site even more user friendly and SEO optimised by giving useful descriptions to each of your category. I am yet to do it on this blog though since this thought came when I was working on one of my blogs.
July 18, 2011 at 10:27 pm
Thanks for the post. I am creating a website for a client that has little knowledge of WP customization and I would like a simple plugin that will display the category description above the post listings. Can you recommend something? Or where to look for something like this?
Thanks in advance!!
July 20, 2011 at 9:15 am
Just use the code to display category descriptions
in index.php or whatever file in your theme used to display post listings. Should work fine. There is no plugin as such to do that.
December 10, 2011 at 6:45 pm
Maybe a better way to display information for a category (description and images) is extra plugin category description: http://www.greatwpplugins.com/extra-category-content/ :)
December 16, 2010 at 3:02 am
hi,
i have a question about category description! when you place the mouse over a category name , the following massage appear ( view all posts in category bla bla ) even if the description field is empty !
how to hide it ?
thanks in advance :)
September 3, 2010 at 7:34 am
Any idea how to truncate the category description? I’m pulling the category descriptions to the homepage, but need to limit the character output).
September 6, 2010 at 7:22 am
To limit the category descriptions to a certain character length, add the following code to functions.php file:
And now replace your
with
April 30, 2010 at 9:54 pm
Hi..
I’m wondering about something:
I put this:
In my archive.php file but nothing shows up. I want it to appear on the page just about the blog posts feed.
Am I missing something?
Thx…
May 1, 2010 at 1:36 am
Please check the code is category_description..coz underscore is not visible at the moment. Also I have updated the code. Recheck again. :)
October 31, 2009 at 8:09 pm
Any guidance on the right length for category descriptions? Should these be sentences or several keywords?
January 11, 2010 at 8:17 pm
Around 140-160 characters should suffice since we are using it as meta descriptions and this length is ideal length for meta description.
July 27, 2009 at 4:56 pm
The description of the catagory is nicely displayed within the meta description. However it is also showing the tags, wich are probably inserted automatic when inserting the descripon of a category. I havent seen the result back in the SERP’s, but my guess is they’ll also show in there. Do you know a way to prevent this form happening? Thanks in advance!
June 23, 2009 at 1:23 pm
I have filled in most of my category descriptions, does it help with seo or is that only if you install those coding bits?
June 23, 2009 at 1:57 pm
You also need to ensure that your Theme also supports this. Just filling the description does not help. If your theme does not supports this, then you need to insert the codes mentioned in the post.
June 23, 2009 at 2:27 pm
Thanks! I am going to check that out for sure. I just assumed it would help with the seo, I had no idea the theme had to support it or any of that thing. Anything to do with coding is always way over my head. I have a helper for those parts :) Thank goodness for friends! lol
Thanks again
June 2, 2009 at 2:20 am
I use category description in my site but with no SEO luck so far
June 6, 2009 at 6:54 pm
Well this is not the only SEO factor available. Great content and SEO on complete site can give results. Moreover, don’t expect results overnight. Be patient.
May 7, 2009 at 7:44 pm
I am trying to publish the category description on the category page (not in the meta description), but the code just wont work!?
May 4, 2009 at 2:53 pm
Definitely going to have to try this now. Thanks A lot
April 15, 2009 at 7:16 pm
Somehow the code doesn’t show. Just grey boxes.
I’m with you on the topic, though. Widely underused.
April 29, 2009 at 6:19 pm
Same goes here. No code just gray boxes
April 29, 2009 at 9:26 pm
Sorry for a stupid bug. Fixed. Now you can see the code.
February 6, 2009 at 6:01 pm
Thanks for the post. I was using plain sql + php to fetch that desc. data :D Now switching…
February 3, 2009 at 5:21 am
I know a lot about SEO and I don’t think that the category description is out dated. Top search engines still using it. But if you don’t have it then they will take your page contents.
But it is a nice way to give a search engine a selected material.
Great information you shared with us.
February 3, 2009 at 1:07 am
I wish more theme developers built this option right into their themes. It would really increase SEO relevance.
February 2, 2009 at 4:47 am
Description for categories seems to be cool Idea, thanks for sharing!,
February 2, 2009 at 12:29 am
Wooooow, it never struck me that SERPs would give heed to category description and i always thought why we need to fill it. I guess need to have a look on those now. Thanks for sharing.
January 29, 2009 at 11:21 am
All types of meta tags (including description) are outdated … SE are much more advanced than what we think of …
January 27, 2009 at 7:34 pm
Thanks! I always hated how it tried to drop descriptions directly into the frickin navigation. This is much better.
January 27, 2009 at 4:58 pm
too much seo is terrifying
January 27, 2009 at 4:41 pm
I always thought why there is category description and how to use it. Now I can use it. Thanks for this.
Also thanks for commenting on my blog and pointing out the mistakes. I like your blog. Subscribing to Web RSS Feeds.
January 21, 2009 at 9:39 pm
I’ve always wondered how I could get this to work, I mean most of my categories have descriptions but my theme won’t show em. Thanks
January 21, 2009 at 3:13 pm
I am wondering to know all that and now I am really confused to miss that. I think we work for SEO all the day and we always miss such minor things which can effect on our SEO campaigns a lot. Thanks for sharing it.
January 21, 2009 at 11:46 am
Hi Navjot,
I have never tried to use this feature, for sure I will try now, thanks for the useful info.
January 21, 2009 at 7:19 am
Im one of those blogger who missed out the description. So much work to do now. THanks for the info
January 20, 2009 at 8:13 pm
Thanks for this post. I will sure do this since i am still learning SEO. Hope this would help.