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. Cool plugin, i am going to install on my blog now.

  2. Version 1.3 Released

    This version adds support for WordPress 2.3, and a ‘Load Default Options’ button has been added to the options page. The Javascript (click to expand) feature has been removed, due to problems with it.

  3. i have been looking for something like this for a long time! thanks for this wonderful code

  4. 27
    MFrazier

    I love this plug-in, but I am curious how I would edit it to output the number of posts in that category to the right of the category name.

    any ideas?

  5. This plugin looks perfect for something my dad’s been asking for on the website I manage for him… but I’m having a problem with it. I installed the plugin and configured options as instructed above, and then created a page containing just <!-- multicolcats -->. When I view the page, the list appears for a split second and then vanishes. I have no idea what would make that happen — can you help? The URL is http://www.familypoet.com/poems-by-category/ – thanks!

  6. WordPress database error: [Can't find FULLTEXT index matching the column list]
    Hi,
    First I want to thanks for this nice nice plugins

    But I got onje problem in my blog.
    I got this error :-

    SELECT ID, post_title, post_content,MATCH (post_name, post_content) AGAINST (‘blode 134′) AS score FROM wp_posts WHERE MATCH (post_name, post_content) AGAINST (‘blode 134′) AND post_date

  7. Wow! Here’s the script I’ve been looking for in your sitemap generator although it would be nice if the categories can be arranged exactly as they can be in the sitemap generator instead of alphabetically.

    Like:
    Category A
    – Subcategory1
    – Subcategory2
    Category B
    – Subcategory1
    – Subcategory2

    This is pretty nifty, though. Great work!

  8. Thank you so much for creating this! I tried to do this on my own, and it just wasn’t working out right. This plugin lets me do exactly what I wanted!

  9. we have an working example running on http://www.cmssolutions.nl
    Feel free to have a look at the way it is integrated.

  10. Can anyone offer an example of this in action?

  11. 20
    kate

    Of course I meant to ask the previous question under the multi column Link List Plugin. Sorry.

  12. 19
    kate

    Hi,

    Nice idea!
    Do you know how i could do the same thing with posts rather than links?

    Thank you!
    Kate

  13. Thanks for the cool plugin

  14. 17
    Michael

    Nevermind. Got it to work. Nice plugin.

  15. 16
    Michael

    Would it be difficult to modify this to pull in category descriptions under the category names? This is something of a big shortcoming in WP, IMHO.

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.