Support » Fixing WordPress » Tag Cloud broken doesn’t display

  • I recently transferred to a new host and subsequetly have spent a lot of time getting my site up and running normally.

    One thing I can’t figure out and don’t even know where to begin: my tag cloud is broken. I was working initially after the transfer, but now it is just empty. The tag cloud displays fine in my dashboard when i go to the ‘tags’ area, but i just can’t get it to show up on my website, All the posts have their tags. I also tried installing several different tag plugins but none of them work. I’ve tried different thems but all have the same problem.

    I don’t even know where to begin to try and fix this. Please help me with any suggetsions or clues on where to look in the code.

    My site:

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator kmessinger


    Your site has errors. You can check them here,

    Wow didn’t know you could check for errors like that.

    well i went through all of them to figure out where the errors were.

    Most of them aer related to ampersand symbols not encoded correctly, or code related to Amazon affiliate links or statcounter.

    after removing the culprit code, it didn’t fix the problem. i didn’t bother fixing the ampersand issues as there were too many and it seems like they are harmless.

    Justin Tadlock


    WordPress God

    What code are you using to show a tag cloud? Have you disabled your plugins to see if something is conflicting with the display of your tags?

    i was using simple tags plugin for the tag cloud.. but then when that wasn’t working, i took out all the plugins and just tried the default tag cloud which didn’t work. i am so frustrated!

    is there a way for me to see what, if any, error messages are generaated by the wordpress code? i dont see any error log file anywhere

    Moderator kmessinger


    This is the code I see for your tag cloud . . .

    <div id="sidebar-bottom">
    <h3>Tag Cloud</h3>

    Here is working code for a tag cloud . . .

    <li id="tag_cloud" class="widget widget_tag_cloud">
     <h2 class="widgettitle">

    It seems something is missing.

    hmm good point. i just checked another site ( which is using the exact same theme which shows this:

    <div id="sidebar-bottom">
    <h3>Tag Cloud</h3>
    <a href='' class='tag-link-12' title='1 topic' rel="tag" style='font-size: 8pt;'></a>
    <a href='' class='tag-link-8' title='1 topic' rel="tag" style='font-size: 8pt;'>US</a>

    Both sites have the exact same code being called:

    <div id="sidebar-bottom">
    <?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(4) ) : ?>
    <h3><?php _e('Tag Cloud','arthemia');?></h3>
    <?php wp_tag_cloud(''); ?>
    <?php endif; ?> </div>

    So it looks like something is wrong with the wp_tag_cloud() function itself?

    Moderator kmessinger


    Can’t help with the PHP but maybe the code did not download correctly.

    The above codes you posted do not look like they are calling the same function to me.

    Could anyone help please? I am getting the following message from where the tag cloud should be on my tabbed sidebar:

    Fatal error: Call to undefined function esc_url() in /home/transiti/public_html/wp-includes/category-template.php on line 662

    and this is the section of the category-template it refers to:

    foreach ( $tags as $key => $tag ) {
    $count = $counts[ $key ];
    $tag_link = ‘#’ != $tag->link ? esc_url( $tag->link ) : ‘#’;
    $tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key;
    $tag_name = $tags[ $key ]->name;
    $a[] = “<a href=’$tag_link’ class=’tag-link-$tag_id’ title='” . esc_attr( $topic_count_text_callback( $count ) ) . “‘$rel style=’font-size: ” .
    ( $smallest + ( ( $count – $min_count ) * $font_step ) )
    . “$unit;’>$tag_name”;

    Does anyone know what the problem is? My tag cloud widgets will not work.
    Any help would be much appreciated. Thank you.


Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Tag Cloud broken doesn’t display’ is closed to new replies.