Walker News

A capsule of walker’s experience in life…

How To Add Tag Cloud And Post Tag In Wordpress Theme

Prior to Wordpress 2.3, there is not built-in support for Tag Cloud and Post Tag features.

Thus, Wordpress themes that were developed before the release 2.3 are not capable of showing Tag Cloud and Post Tag.

Even if you’re using the latest theme, the tag features might be “invisible” too.

To make this happen, you’ll have to ensure these two criteria exists in your weblog:

  • Install/upgrade to Wordpress 2.3 or higher (supposedly the Tag feature will not be removed in future)
  • Update the Wordpress theme template files by adding two new functions that are coded to display Tag Cloud and Post Tag

How to add the Wordpress tag functions to existing Wordpress theme?

The Wordpress 2.3 comes with 2 themes - the classic and the default theme. However, not many users are using these “simple” themes and many tend to ignore them altogether!

In fact, they are worth to serve as a reference for Wordpress theme developers. For example, the single.php template file calls the_tags Wordpress function to display Post Tag in the post page.

Depends on where you want the Post Tag appears, edit the Wordpress theme template file (normally this is single.php) and insert this single PHP code to show Post Tag

<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>

To display Tag Cloud, edit the Wordpress theme template file (usually it is sidebar.php if the sidebar is more than 200px) and add this single line of PHP code

<?php wp_tag_cloud('smallest=8&largest=22'); ?>

Wordpress function reference: |

Also refer How to setup multiple websites or hosts in single Apache web server

Bookmark and Share:
  • Facebook
  • StumbleUpon
  • Sphinn
  • Digg
  • Pownce
  • del.icio.us
  • Live
  • Google
  • YahooMyWeb
  • Slashdot
  • Furl
  • NewsVine
  • Reddit
  • Ma.gnolia
  • TailRank
  • Technorati
  • BlinkList
  • blogmarks
  • IndianPad
  • Haohao
Topic - Internet   Search - , , ,

Similar Articles:
» Update WP_TITLE To Display Blog Name On The Right
» Classy Black Wordpress Theme By AskGraphics
» Highlight Author Comment And Pingback In Wordpress Theme
» Enable Gravatar In Wordpress Comment And Pingback
» WalkerNews Wordpress Theme With Tag And Gravatar
» How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?
» Favicon: How To Create A Website Icon For A Blog?

Custom Search
Make your PC more useful by downloading the FREE Google Pack!

Latest Posts @ WalkerNews.net

↑ Grab this Headline Animator

Navigation:
» HOME - WalkerNews.net
« PREV  - Download Raiden PC Game For Windows Vista
» NEXT  - Classy Black Wordpress Theme By AskGraphics

No comments yet. Be the first.

Appreciate your comments, but please be in topic.
Please use proper English with punctuation, from 12th of May 2008 onwards.
WalkerNews.net supports Gravatar (Web ID)