WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Author Categories

A wrapper of the default 'wp_list_categories' to present an author's menu, when in the author pages.

Usage

After you upload an activate the plugin through your admin panel, all you need to do is call the custom function wp_author_categories() that will create an author's menu for you. Notice that this only works in author pages and will revert to the default category menu in any other case.

If you are using the default template, you can easily find this line in "sidebar.php" (that displays the category menu): Categories'); ?>

You can replace it with this condition that will use the wp_author_categories() function instead, when you are visiting the author pages

        <?php 
        /*
        * First write down the arguments you want to use for you menu and store them in a variable. 
        * These are the same for the default menu ("wp_list_categories") and the author menu ("wp_author_categories")
        * you can find more information on the options you can use here: http://codex.wordpress.org/Template_Tags/wp_list_categories
        */
        $args = 'show_count=1&title_li=<h2>Categories</h2>';
        if($author){
            wp_author_categories($args); 
        } else{
            wp_list_categories($args); 
        }
        ?>

Alternatively, and if you already have an "author.php" file in your template folder, you can simply rename "wp_list_categories()" to "wp_author_categories()", passing the same arguments.

To uninstall, it's as easy as doing the reverse actions. Delete all references of the wp_author_categories() function from your template files and uninstall the plugin through that WordPress's admin panel.

License

This work is released under the terms of the GNU General Public License: http://www.gnu.org/licenses/gpl-2.0.txt

Requires: 2.5 or higher
Compatible up to: 2.7.1
Last Updated: 2009-4-11
Downloads: 2,770

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.