The Science of Web Art, Design and Development

Zo’C Subcats - A wordpress plugin to display subcategories

Subcats SnapZo’C subcats is a wordpress plugin that enables you to display either a list or a drop down menu with the subcategories of a category of your choice. The plugin gracefully degrades in absence of Javascript.

Download it here

This plugin has been downloaded 387 times.

License

The Zo’C subcats plugin is distributed under the terms of the GPL

Instalation

  • Unzip the file on the wp-content/plugins directory of your wordpress instalation
  • Go to The Plugins Management section on the Wordpress Control Panel
  • Activate the Zo’C subcats plugin

Use

Put

  • wp_zoc_show_subcats_select($cat) to display a drop down menu
  • wp_zoc_show_subcats_ul($cat) to display a list

of the subcategories of category $cat.

$cat is the number id of the parent category, that you can find on Manage >> Categories on the WP control panel

You can insert the code anywhere in your template and you can use it several times to display subcategories of different categories.

Graceful degradation

The drop down menu would require your user to have javascript to work but, if your visitor doesn’t have Javascript Enabled the plugin will gracefully degrade and display a list instead.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • Technorati
  • BlogMemes
  • Ma.gnolia
  • YahooMyWeb
  • Netscape
  • Slashdot
  • StumbleUpon
Trackback URI