WordPress.org

Support

Support » How-To and Troubleshooting » wp_tag_cloud() function returns null array though I have many tags

wp_tag_cloud() function returns null array though I have many tags

  • I am trying to figure out why my tag cloud is empty at mysavingcents.com. I posted a separate topic but now I have a specific question since i’ve narrowed down the culprit code.

    The function wp_tag_cloud seems to return a null array even though i have 41 tags defined. From the codex, it looks like it’s supposed to return an array of tags. I’ve been looking for the actual code to figure out what exactly the function is doing and why it is failing to generate an array. But it doesn’t seem to be defined anywhere in the wordpress directory and I assume must be as part of a binary library.

    If anyone knows or has access to the code, let me know. I suspect that I may have a corruption in my DB that is causing the wp_tag_cloud function to return NULL. I would like to see the code to see what variables it uses and help me direct where to look in the database tables..

Viewing 2 replies - 1 through 2 (of 2 total)
  • There are no binary libraries in WordPress. wp_tag_cloud is defined in wp-includes/category-template.php.

    Do you have any other noticeable tag problems—can you see them in the tags menu, and do they show a post count? Are you using any plugins that could be altering the output of wp_tag_cloud()?

    oh hmm i did a text search for the wp_tag_cloud function but couldn’t find it. i’ll check that file.

    no other noticeable tag problems. I see a tag cloud when i go to the tag settings page and all 41 are listed appropriately.

    Ive tried deactivating all plugins, reinstalling my theme, using default theme. i just can’t figure it out.

    I recently did an import of my blog from another host and had some issues which i have been tracking down and fixing. This is one of the last ones i have yet to fix.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_tag_cloud() function returns null array though I have many tags’ is closed to new replies.
Skip to toolbar