WordPress: How to Add Descriptions to your TAGS (on your Tag Pages)

Wordpress- WordPress – getting TAG descriptions to show up at the top of the page
– TAG descriptions in WordPress – Adding to your TAG pages
– HTML descriptions on TAG pages

Did you know that you can have your TAG descriptions visible on your WordPress pages? So you want TAG “descriptions” to show at the top of the page as well? Maybe you want to delete that ugly default that says

Example:  “Tag Archives: Custom Font”

Why would you need this? Maybe you don’t want to have a category for everything in your blog. Maybe you have a special need to tag a few articles that have common categories but a specific tag (and you want that TAG to have a description showing that helps in SEO!!!) For instance, your articles might be categorized under “News”, but you want your tag page for tag “2012” to have “it’s own header description.

——————————

Now to clarify the kind of pages I’m talking about, it might be a page like :

http://www.simpleinbound.com/tag/custom-font/

which is a tag page that gets categoried under “WordPress”

——————————

01- Open the file tag.php

02- Edit

03-  Find the section that is similair to this

<h1><?php
printf( __( ‘Tag Archives: %s’, ‘twentyten’ ), ‘<span>’ . single_tag_title( ”, false ) . ‘</span>’ );
?></h1>

04- Add this code right beneath it

<!– CODE added to DISPLAY  TAG descriptions –>
<?php if (is_tag()) { ?><?php echo tag_description(); ?><?php } ?>
<!– end CODE added to DISPLAY  TAG descriptions –>

05- SAVE

___________________________________________

NEXT STEPS:

01- Go into your TAGS (in your dashboard located at)

POSTS–>POST TAGS

02- Do a search for the Tag that you want a description added and click EDIT to add it to the “description field”

I pasted in some HTML code like this:

<p>
<strong>2012 specific articles:</strong><br />
Archive of 2012 related articles of interest<br />
Check back as many more are added to this archive
<p>

That’s it – the tag page for this tag should now have a description

======================================================

How to Get rid of TAG headers (found at top of TAG pages)

If you don’t like that default header that appears on TAG pages, you can comment it out by the following method

Example:
“Tag Archives: found footage”

Comment this section out:

<h1><?php
printf( __( ‘Tag Archives: %s’, ‘twentyten’ ), ‘<span>’ . single_tag_title( ”, false ) . ‘</span>’ );
?></h1>

should look like this:

<!– commenting out TAG page headers –>
<!–
<h1><?php
printf( __( ‘Tag Archives: %s’, ‘twentyten’ ), ‘<span>’ . single_tag_title( ”, false ) . ‘</span>’ );
?></h1>
–>
<!– END commenting out TAG headers –>

Thats’s it!

Related Posts Plugin for WordPress, Blogger...

About Michael Bohatch - SimpleInbound

Michael Bohatch has been involved with SEO and Inbound Marketing since its inception. Michael provides professional services that combine his experience in Web Analytics, SEM, SEO and Inbound Marketing for a comprehensive strategic approach to web optimization. SimpleInbound.com is an advice blog where he documents some of his findings and advises others on industry updates.
This entry was posted in Technical Aids, Wordpress and tagged , , , . Bookmark the permalink.
If you would like to stay current on our Inbound Marketing Techniques, make sure to:
Subscribe to the RSS Feed!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>