40 Responses

  1. ben_
    ben_ May 1, 2009 at 5:32 am | | Reply

    Now just add the feature to make the comment-able and give them unique IDs in the same line as post and pages … and voila … you got almost got a Topic Map inside Worpdress.
    http://en.wikipedia.org/wiki/Topic_Maps

  2. Matthew
    Matthew May 1, 2009 at 9:44 am | | Reply

    It seems so simple, wonder why it wasn’t there when tags were added.

  3. ben_
    ben_ May 1, 2009 at 3:12 pm | | Reply

    @Justin: Sure. Giving them a description is just another step of moving them from Meta-Data to Meta-Content. Making them commentable and having only one zentralised ID-System for Posts and Tags (eg. Topics) are further steps, although you don’t need them to create a topic map.

  4. david
    david May 3, 2009 at 12:05 pm | | Reply

    Good to know this is coming. I was just thinking that it would be nice to have around. Though I doubt I’ll be disciplined enough to give descriptions to all my tags.

  5. paquetes roatan
    paquetes roatan May 27, 2009 at 1:43 pm | | Reply

    Simple. Good to know. Thanks.

  6. Mary-Ann Horley
    Mary-Ann Horley June 10, 2009 at 12:15 pm | | Reply

    I’m just updating my theme in preparation for 2.8, and I’m wondering if there’s a way of adding links and images to tag descriptions (and category descriptions)?

  7. wordpress lovers
    wordpress lovers June 12, 2009 at 3:00 am | | Reply

    I too wanted this feature, I am now looking forward to write excellent descriptions for my tags.

  8. Mary-Ann Horley
    Mary-Ann Horley June 12, 2009 at 6:03 am | | Reply

    Thanks very much Justin!

  9. eddai
    eddai June 13, 2009 at 6:40 am | | Reply

    sorry..a bit out of topic but could you please let me know how you make that questioned mark mouse cursor when hovered over an abbreviation word ?
    Best~

  10. Wordpress 2.8 Tips and Tricks June 15, 2009 at 9:37 am |
  11. Not A Niche
    Not A Niche June 15, 2009 at 2:53 pm | | Reply

    Great explanation of tag description! wpSEO http://wpseo.org has already implemented this feature in their plugin to improve SEO on your WordPress installation.

  12. AIR
    AIR June 25, 2009 at 7:27 am | | Reply

    Thanks! I use tag description in some other way. It’s a good possibility to place affilate link here :)

  13. Josh
    Josh September 4, 2009 at 3:46 pm | | Reply

    Thanks for the meta description explanation! I had no idea how to do that and found you on a Google search. You’re the man!

  14. arabist
    arabist September 12, 2009 at 1:15 am | | Reply

    Thanks for the post, Justin. I noticed that when entering descriptions in admin, you can’t put in an image (img src…) link. Wordpress appears to strip them immediately, independently of the theme (so the solution you mentioned, involving the themes functions.php file, doesn’t work.)

    Any thoughts on allow some limited HTML, such as a, img, blockquote etc.?

    Thanks!

  15. Nebulizadores
    Nebulizadores September 23, 2009 at 9:21 am | | Reply

    Thanks very much Justin, very useful information .

  16. Qurtubhy
    Qurtubhy January 24, 2010 at 10:25 am | | Reply

    ist must use quote in description tag ?

  17. Richard
    Richard February 7, 2010 at 5:32 pm | | Reply

    remove_filter( 'term_description', 'wp_kses_data' ); is needed to allow full html in tag descriptions in 2.9

  18. ben corke
    ben corke March 3, 2010 at 7:10 am | | Reply

    I wonder if there is a way to automate the tag description using boilerplate text and hooks to the tag name.

    i.e. This is a list of all the posts for %tag%. We love %tag%. We dream of %tag%.

    not sure if this would count towards duplicate content issues or not – doubt it if the text is short…

    Ben

  19. Epiphora
    Epiphora April 26, 2010 at 5:45 pm | | Reply

    This is awesome. Thank you so much for it. I really want to get images showing up, but something isn’t working right. I added the code you mentioned to functions.php, and the images show up inside WP when I edit the tag, but they don’t show up on the page. Any idea why?

  20. Ralf
    Ralf April 30, 2010 at 9:51 am | | Reply

    Hi,

    remove_filter( ‘term_description’, ‘wp_kses_data’ )
    is working well for strong or italic, but I like to use in the description. Do you see any way to manage this?

    Ralf

  21. Ste
    Ste June 15, 2010 at 5:02 am | | Reply

    Hi,

    I use tag descriptions on my site to great effect. The one problem i do have, however, is that it seems to strip some of the html tags.

    If the text is more than one paragraph it strips all the tags except for the first and last, and replaces them with instead.

    Do you know any way around this?

    Thanks!

  22. Matt Halfhill
    Matt Halfhill July 28, 2010 at 5:15 pm | | Reply

    I have been building out my tag.php in my template to offer as much relevant content as possible when an incoming reader lands on this page. Something I wanted to do was provide a picture as well as brief writeup about the topic of the tag.

    I hacked the functions.php so that I could input images, links, paragraphs, and other HTML into this field, but when I call it via , all i get is just the stripped down text.

    I have added the remove_filter( 'term_description', 'wp_kses_data' );, but no dice.

  23. KnockOut
    KnockOut August 30, 2010 at 12:20 am | | Reply

    You can use full HTML in your tag descriptions by adding the following to functions.php

    remove_filter( 'pre_term_description', 'wp_filter_kses' );
    remove_filter( 'term_description', 'wp_kses_data' );

    It worked for me!

  24. Will
    Will September 4, 2010 at 10:36 am | | Reply

    Is it possible to use Javascript in tag descriptions?

    Perhaps this can be achieved by adding a line to functions.php?
    (like the solution to use full HTML)

    Thank you

  25. Andrew
    Andrew December 11, 2010 at 12:51 pm | | Reply

    Awesome tip. I’ve just been looking for a way to use tag descriptions as meta descriptions for tag pages. The problem was Wordpress kept wrapping the description in p tags :( But your tip fixed it.

    1. Andrew
      Andrew December 11, 2010 at 12:56 pm | | Reply

      One small problem I’ve encountered is that in the source code, there’s a new line after description generated by the PHP. Like this:

      Just a minor annoyance, but I wonder what’s up with that?

    2. Andrew
      Andrew December 11, 2010 at 1:21 pm | | Reply

      Oh nevermind, I just had the smashing idea of using trim:

      <meta name="description" content="" />

      And the evil new line is removed! Yay.

  26. Dave
    Dave March 25, 2011 at 7:00 am | | Reply

    Hi,

    Your post was very helpful. But I need to get the formatting done to the description. Right now its showing all in a single line and omitting all new lines and other formatting.
    Can you pls advise how I can format the description?

    Awaiting your reply!
    -Dave.

    1. Dave
      Dave March 25, 2011 at 9:52 am | | Reply

      hey I got it..
      I had to use a combination of a couple of functions for tags and get the description.

      Thanks :-)

      -Dave

Leave a Reply

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution.

Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.