Tag Cloud in a page of its own

Discussion in 'Blogging' started by chengsun, Apr 2, 2008.

  1. #1
    Hi all, I am looking for a way to embed my tag cloud into my individual page, instead of having it in my sidebar. Is there such way? Or is there a plugin for WP can do it?
    Thanks all
     
    chengsun, Apr 2, 2008 IP
  2. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here's a great tag cloud plugin: http://reciprocity.be/ctc

    Yes, this can be done, but you have to do a little work first. In order to have this plugin show up in its own page, you'll need to add an additional template page to your template (you can simply duplicate an existing one), and include the code for the tag cloud within the body code. Then, create a new page (not a post) called "tagcloud" or whatever you want, and assign the new template page you've just created to this new page.
     
    Pixelrage, Apr 2, 2008 IP
  3. chengsun

    chengsun Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi mark, thx u. I got a problem here. I activated the plugin, i created a new page, i duplicated the index.php (renamed), but i could not "assign the new template to the new page"... also, where is "the code for the tag cloud"? u mean i copy everything from the ctc.php?
    sorry, im not so well versed in WP...
     
    chengsun, Apr 3, 2008 IP
  4. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #4
    You need to change the name of the page. If you duplicated the index.php and renamed it tags.php, open it and change or add this at the top:

    
    <?php
    /*
    Template Name: Tags
    */
    ?>
    
    Code (markup):
    It will now be a template named Tags in your Write Page menu.

    As for how you get the tags to show up, you'll have to use some variation of this call in the page:

    
    <?php ctc(); ?>
    
    Code (markup):
    If you go to the website that you downloaded the plugin from you'll see a list of parameters for it. Play around with them to get the desired output.
     
    mizaks, Apr 3, 2008 IP
  5. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #5
    what mizaks said above - do that, and add this code into the template body area (where you want the cloud to appear):

    <?php ctc('smallest=10&largest=28&unit=px&mincolor=#c0c0c0&maxcolor=#000000&showcount=yes'); ?>
    Code (markup):
     
    Pixelrage, Apr 3, 2008 IP
  6. chengsun

    chengsun Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thx mizaks and mark for the helps! I managed to get it. But i used only"<?php wp_tag_cloud(''); ?>" in the tagcloud template, it looks good ebough for me at the moment.

    Thanks you so much guys, u guys are wonderful!
     
    chengsun, Apr 3, 2008 IP
  7. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #7
    glad to hear it :D
     
    Pixelrage, Apr 3, 2008 IP