WordPress.org

Ready to get started?Download WordPress

Forums

Tag Cloud broken doesn't display (10 posts)

  1. shiningphoton
    Member
    Posted 5 years ago #

    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: http://mysavingcents.com

  2. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    Your site has errors. You can check them here, http://validator.w3.org/

  3. shiningphoton
    Member
    Posted 5 years ago #

    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.

  4. Justin Tadlock
    Member
    Posted 5 years ago #

    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?

  5. shiningphoton
    Member
    Posted 5 years ago #

    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!

  6. shiningphoton
    Member
    Posted 5 years ago #

    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

  7. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

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

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

    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.

  8. shiningphoton
    Member
    Posted 5 years ago #

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

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

    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?

  9. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    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.

  10. seashman
    Member
    Posted 4 years ago #

    Hi
    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.

    seashman

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags