Creates a widget for listing terms of taxonomies in WordPress.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Taxonomy Widget

By Michael Fields

Tested up to WordPress version 3.2.1


The Taxonomy Widget Plugin enables users to create widgets in their sidebar that display all terms of any given taxonomy. Users can choose between 3 different templates including two types of lists, a term cloud or a dropdown menu.


  • Title - You can enter a custom title for your widget in this text input. If you leave this field blank, The name of the taxonomy will be used. If you do not want a title displayed at all, you can toggle this by un-checking the Display title box under Advanced Options.

  • Taxonomy - You can select the taxonomy whose terms you would like displayed by selecting it from the dropdown menu.

  • Template - Select a template for your terms by selecting one of the radio buttons in the Display Taxonomy As section.

  • Display title - If checked the title will be displayed. Un-checking this option will hide the title. Defaults to checked.

  • Show post counts - If checked, the number of posts associated with each term will be displayed to the right of the term name in the template. This option has no effect in the cloud template.

  • Show hierarchy - If checked, the terms will be indented from the left if they are children of other terms. This option has no effect in the cloud template.



  • Set value of the "taxonomies" property a bit later in the action sequence.


  • Cleanup.
  • Provide alternative default if categories are disabled.
  • Do not register widget if no taxonomies are registered.


  • stupid comma ...
  • another stupid comma !!!


  • Better escaping throughout.
  • Use get_term_link() for javascript redircts.


  • Never officially released.
  • Dropped support for 2.9 branch.
  • Removed mfields_walk_taxonomy_dropdown_tree().
  • Removed mfields_dropdown_taxonomy_terms().
  • Removed global variables.
  • Moved javascript listeners into mfields_taxonomy_widget class.
  • Create mfields_taxonomy_widget::clean_args() to sanitize user input.
  • Removed mfields_taxonomy_widget::sanitize_template().
  • Removed mfields_taxonomy_widget::sanitize_taxonomy().
  • Tag clouds will now only display if their setting allow.
  • Tested with post formats.
  • Removed mfields_taxonomy_widget::get_query_var_name() using $taxonomy->query_var instead.


  • Added filters for show_option_none text in dropdown.


  • Don't remember. Sorry...


  • BUGFIX: Dropdown now displays 'Please Choose' on non-taxonomy views.


  • Now compatible with WordPress Version 2.9.2.


  • Original Release - Works With: wp 3.0 Beta 2.