Ticket #4129 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

Tag Clouds

Reported by: mdawaffe Assigned to: mdawaffe
Priority: normal Milestone: 2.2
Component: Template Version: 2.2
Severity: normal Keywords: tags has-patch
Cc:

Description

#3723 introduces tags to WP core. Here's a port of bbPress tag cloud generating functions.

wp_generate_tag_cloud( $tags, $args )

Feed it prefetched tags (get_tags()) and some arguments that determine the sizes of the fonts in the cloud. Generic function that can accept whatever tags you throw into it (related tags, tags found on posts in category X, tags that start with Q, least used tags, whatever).

wp_tag_cloud( $args )

Grabs top tags and feeds them to wp_generate_tag_cloud().

wp_parse_args( $args, $defaults )

Helper function ryan and I would like to see fully adopted for 2.3.

Tweaks get_tags().

Small bug and use of wp_parse_args().

Attachments

4129.diff (5.3 kB) - added by mdawaffe on 04/10/07 19:46:35.

Change History

04/10/07 19:46:35 changed by mdawaffe

  • attachment 4129.diff added.

04/10/07 19:48:47 changed by mdawaffe

  • owner changed from anonymous to mdawaffe.
  • status changed from new to assigned.

Forgot to mention wp_generate_tag_cloud() can output a whitespace separated list, a UL/LI list, or a raw array of links.

04/10/07 19:52:17 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [5234]) Tag clouds from mdawaffe. fixes #4129