viewing source for "README"

last commit

commit 174cebc5503f63c923716626265a707421e916ff Author: Andrew Rader <andrew.r.rader@gmail.com> Date: Sun Feb 3 10:21:20 2008 -0800
README: removed SVN info

source code

01: # Fancy Categories For Wordpress #
02: 
03: This is a very simple plugin that uses Javascript to form a collapsable set of
04: links in the sidebar for the categories.  Each sub category will be placed
05: "below" its parent in a logical hierarchy.
06: 
07: ## Demo ##
08: 
09: You can view a demo of this plugin at my Wordpess demo page [here][1].
10: 
11: ## Installation ##
12: 
13: Unpackage contents to wp-content/plugins/ so that the files are in a
14: fancy-archives directory. Now enable the plugin. To use the plugin, change the
15: following where appropriate (most likely sidebar.php):
16: 
17:     <?php wp_list_categories(...); ?>
18: 
19: To something of the following:
20: 
21:     <?php
22:     if( function_exists('list_fancy_categories') ) {
23:       echo "<li>\n<h2>Categories</h2>";
24:       list_fancy_categories();
25:       echo "</li>\n";
26:     } else {
27:       wp_list_categories(...);
28:     }
29:     ?>
30: 
31: **Note:** Replace the above `...` with whatever the correct arguments for your
32: theme are.
33: 
34: The above will fall back to the WP function for categories if you disable the
35: plugin.
36: 
37: Options for the Fancy Categories plugin include:
38: 
39:   * Show post count in category links
40:   * Include sub-category totals in parent link
41:   * Text to show for category link (%title, etc)
42:   * Limit title length to a set number of characters
43:   * Add a '...' to the end of shortened category titles
44: 
45: Fancy Categories also looks at the current URL of the user's browser to
46: determine if the user is looking at a category page. If the URL is a category
47: page, that category is auto-magically expanded. This allows even those without
48: javascript to enjoy this plugin.
49: 
50: [1]: http://dwords.voidsplat.org/?page_id=19