Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#11612 closed enhancement (fixed)

Expand the Tag cloud widget to support non-tag taxonomies

Reported by: dd32 Owned by: dd32
Priority: normal Milestone: 3.0
Component: Widgets Version: 2.9
Severity: normal Keywords: has-patch tested
Cc: Focuses:

Description (last modified by dd32)

Attached patch adds a 'Taxonomy' field to the options for the Tag Cloud widget.

Currently on a default install it allows selecting of 'Categories' or 'Post Tags', If you define a custom taxonomy, it'll be available for that as well.

Attachments (3)

11612.diff​ (2.0 KB ) - added by dd32 17 years ago.
11612.2.diff​ (2.1 KB ) - added by dd32 17 years ago.
Adds extra is_taxonomy() validation
11612.3.diff​ (2.1 KB ) - added by scribu 17 years ago.
Cleaner code

Download all attachments as: .zip

Change History (9)

@dd32
17 years ago

Adds extra is_taxonomy() validation

#1 @dd32
17 years ago

  • Description modified (diff)

@scribu
17 years ago

Cleaner code

#2 @scribu
17 years ago

  • Keywords tested added

A much needed addition.

Patch looks good. I've made a separate method for retrieving the current taxonomy.

#3 @hakre
17 years ago

  • Version 3.0 → 2.9

How about seeing it committed into trunk? Is there anything speaking against having that in?

Custom taxonomy related tickets: #9269, #10207

#4 @nacin
17 years ago

  • Owner changed from azaozz to dd32
  • Status new → assigned

#5 @dd32
17 years ago

  • Resolution → fixed
  • Status assigned → closed

(In [13276]) Allow the Tag Cloud Widget to support non-tag taxonomies. Props Sivel. Fixes #11612

#6 @dd32
17 years ago

Changed a few things here and there, Mainly related to the default title, It defaults to the Taxonomy Label if its left empty (Or 'Tags' for the Post Tags tax.)

I also added a 'show_tagcloud' option to the taxonomy registration process, Defaults to 'show_ui' which defaults to 'public', Allows plugins to specify that they dont want their plugin to be listed in the tag clouds.

Note: See TracTickets for help on using tickets.