tag and tag description in loop

  • Unknown's avatar

    Hi everybody
    My question.
    Developing my wordpress site http://www.victorenrich.com

    I want to get the description of a tag, but not in a tag page, but in the post page.
    To be more precise.
    I have created some post template. On the top right, I have a the_tags function that returns me the tags of the current post, in an unordered list, under a css class called <h2 class=”post_title”> which is black and bold.
    here’s the code

    <h2 class=”post_title”><?php the_tags(‘

    • ‘,’
    • ‘,’

    ‘); ?></h2>

    What I would like is that not only returns the tag name but, above each tag name, returns also the tag description, and, if possible under a css class called <h2 class=”secton_title”>
    which I have it defined as light grey, bold

    I give you an example.
    tag name 2009 tag description: year
    tag name barcelona tag description: location

    should return

    YEAR
    2009
    LOCATION
    BARCELONA

    That’s it…
    I would really appreciate your help.
    My kindest regards to all and have a nice sunday!!

    V

  • Unknown's avatar

    Sorry, the blog you linked to is not a WordPress.COM blog. This is the support forum for WordPress.COM. It seems you need to be over at support for self-hosted WordPress http://wordpress.org/support/

    WordPress.COM or WordPress.ORG? The difference

    8 Things To Know Before Posting in WordPress.Com Forums

  • The topic ‘tag and tag description in loop’ is closed to new replies.