Support » Fixing WordPress » wp_tag_cloud – re-randomize the cloud

  • Resolved g01010


    I’ve searched for this but couldn’t find an answer. I think it’s probably simple, just not simple enough for me.

    I’ve inserted a tag cloud on my front page using something like this:

    <?php wp_tag_cloud( number=10&order=RAND ); ?>

    So this generates a cloud of 10 randomly selected tags. So far, so good.

    I’d like to add a button on the page so that users can reload the cloud (without reloading the page, ideally) so that they are presented with a new set of tags. Can anyone point me to a bit of code to accomplish this?

    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_tag_cloud – re-randomize the cloud’ is closed to new replies.