Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.3   Updated Friday, February 20th, 2009 at 7:19pm

Multi Column Category List Plugin for WordPress

This plugin generates an alphabetical listing of your WordPress categories in multiple columns. You can choose the number of columns to display, with an option to split up the list of categories by letter. It also supports the use of a custom header to help separate the categories. For example, you could have it say ‘Topics: A’ and then list the topics that start with ‘A’, etc. The category list can easily be added to any post or page with the trigger text, or called directly from a template file. A CSS file is also included for easy style changes.

Related Plugins

There is also a plugin available to generate a multi-column list of your WordPress links.

Download

  If you have found this page useful, please consider donating. Thanks!

Installation

  • Download the above file and uncompress
  • Upload dd-multi-col-cats.php to your plugins directory
  • Upload dd-multi-col-cats.css to your theme directory
  • Activate the plugin from the WordPress admin panel
  • Configure the options under the admin panel: Options – DDMultiColCats

Usage

To use this plugin, simply add the following trigger text to a post or page:

<!-- multicolcats -->

If you prefer, you can also call the function directly from a template file with the following command:

<?php echo ddmcc_generate(); ?>

Change Log

  • 09-29-07 Version 1.3 – Updated for WordPress 2.3. Added ‘Load Default Options’ button. Removed javascript expand code because it was too buggy.
  • 05-16-07 Version 1.2 – Updated for WordPress 2.2.
  • 03-02-07 Version 1.1 – Option added to allow click-to-expand lists. Special thanks to Richard K Miller for submitting the code!
  • 02-03-07 Version 1.0 – First release.

Options

Here are the options available for this plugin under the WordPress admin panel

Number of columns

The number of columns that the categories will be shown in. If you want to show more columns than your layout width will handle, you can adjust the width of each column in the CSS file.

Separate items

Here you can choose to separate the categories by letter, with a custom separation header, or no separation at all.

Separation header

If the separation option is enabled, this is where you enter your separation text, which will be shown above each set of items. You can use %L to show the letter. For example, if you enter Topics: %L then it will show Topics: A, (list of cats), Topics: B, (list of cats), etc…

Excluded categories

This is a comma-separated list of the category IDs you want to exclude from the list.

Pages: « 9 8 7 [6] 5 4 3 2 1 » Show All

  1. Is there a way to make the title tag the WP category description instead of the category title?

  2. 89
    robert

    any chance there’s an easy hack to do the same kind of multi column list, but for the blog authors instead? i have a multi-author blog running on wp 2.7.1 with over 60 authors and growing… your help is much appreciated.

    robert

  3. Thanks for sharing this wonderful plugin.

  4. Is there a way I can use the plugin at http://wordpress.org/extend/plugins/category-icons/ to display icons next to my category listings in my list?

    Thank you, by the way. Awesome plugin!

  5. lugaluda.com: Try this. Find this line in the script:

    $t_out .= '<li><a href="' . get_category_link($cat_list[$c]->cat_ID) . '">' . 
       $cat_list[$c]->cat_name . '</a></li>' . "\n";

    and replace it with this:

    $tmpcat = get_categories ('include=' . $cat_list[$c]->cat_ID);
    $numposts = $tmpcat[0]->category_count;
    
    $t_out .= '<li><a href="' . get_category_link($cat_list[$c]- rel="nofollow">cat_ID) . '">' . 
       $cat_list[$c]->cat_name . '</a> (' . $numposts . ') </li>' . "\n";

    You can see where $numposts is added to the output, and customize as you like :)

  6. Hi, Is there a way to display the number of posts for each category?

  7. This plugin has been tested, and works, in the latest release of WordPress – 2.8

  8. Hi,
    Nice plugin. How to display sub-category under its parent category as now it show sub-categories as main categories.
    Thanks.
    Hum

  9. 82
    Maja

    Plugin doesn’t work with 2.8 . Can you solve this issue?

  10. 81
    paul

    thanks alot, i have been trying to get all the categories in a non-rubbish ordered list, and just in an array but didnt know the sql, now i have my meta box category list, thanks alot.

  11. 80
    Echo

    Thank you so much for this. U ROCK

  12. Could this plugin work for pages, and what about child pages? any advice would be amazing. you da best!

  13. The column behavior did not worked. Is there a problem?

  14. Thanks for shaing, I will certainly buy the plugin, would like to see some videos or pictures, sounds promising though, I have seen it in other blogs, would like to see the admin panel though..thanks..cool plugin

  15. any chance you’re putting out a version where we can select to show all child categories of a parent category like the child_of function? If not, can you tell me how to hack the plugin file. That would be so amazing and I’d really appreciate it. Thanks for all your hard work on your plugins!

Pages: « 9 8 7 [6] 5 4 3 2 1 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.