Tag cloud in a wordpress template

Discussion in 'WordPress' started by madmn, Jul 2, 2008.

  1. #1
    I came across a wordpress template with a section for tag cloud. Here is the code:

    <div class="two-col">
    <h2 class="start">TAG CLOUD</h2>
    <ul class="etc">
    <li><?php if (function_exists('wp_tag_cloud') ) : ?>
    <?php wp_tag_cloud('smallest=8&largest=20&'); ?>
    <?php endif; ?></li>
    </ul>
    </div>

    How do I activate this or use this?
     
    madmn, Jul 2, 2008 IP
  2. Harpreetrock

    Harpreetrock Banned

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Primarily the tag clouds are placed in sidebar.
    So I will sugegst you toplace that in sidebar of ur blog.
    Open sidebar.php file and put the code at the location where you want it.
    You may require to change the <div class="two-col">
     
    Harpreetrock, Jul 2, 2008 IP
  3. David Pankhurst

    David Pankhurst Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    You need tags - for each post, there is an edit panel for tags - as you add them in, the tags will appear using the code you showed here. The most posts share the same tags, the larger that work appears in the cloud.
     
    David Pankhurst, Jul 2, 2008 IP
  4. kentuckyslone

    kentuckyslone Notable Member

    Messages:
    4,371
    Likes Received:
    367
    Best Answers:
    0
    Trophy Points:
    205
    #4
    If you have the most current version of Wordpress just go to the widgets and activate the tag cloud
     
    kentuckyslone, Jul 2, 2008 IP