wordpress – How can I display the description of a tag as a preamble in the template tag.php

I'm trying to pull out the description of the tags on my hosted WordPress site, it worked, but the problem is that any message with that same tag comes at the top of the message list.

  • (even in other tags), the Tag & Discription automatically appears.
    What I want is if I put a discription for my tag for DOGS, only let it appear when I visit … / tag / dogs / not when I visit … / tag / dog-food /
    Help me please (I put all the codes in my template tag.php), here is the code:

        ID);
    foreach ($ tags as $ tag) {
    if ($ tag-> description) {
    echo & # 39;
    term_id). & # 39; "title =" & # 39 ;. sprintf (__ ("See all messages in% s"), $ tag-> name). "#"; & # 39;> & # 39;> $ tag-> name. & # 39;
    & # 39 ;. $ tag-> description. & # 39;
    & # 39 ;; } }?>