How To List WordPress Categories, Tags & Custom Taxonomies Into Multiple Customizable Columns ?

Earlier we discussed about the plugins you can use for displaying tag clouds inside an individual page. Now this tutorial explains your how you can beautifully display your website categories, tags and (OR) other custom taxonomies in a columns.

Multi-Column Taxonomy ListĀ is a powerful WordPress plugin that lets you automatically list your categories, tags and other taxonomies into multiple columns. Simply install and activate it then use the following ways of listing columned taxonomy lists:

  1. You can create a new page and add the shortcodeĀ [mctl]Ā to the content. OR
  2. Alternatively, you can addĀ <?php multi_column_tax_list(); ?>Ā anywhere inside your theme template file.

You can display your custom taxonomyĀ which you have registered withĀ register_taxonomy, simply by adding theĀ taxonomy=custom_taxonomy_nameĀ attribute.

In-case you face problems seeing output with your custom taxonomy then it’s usually one of Ā the following two things:

  1. You setĀ public => falseĀ when you registered the taxonomy. It should be true:Ā public => true
  2. Or there are no posts assigned to that particular taxonomy.

Other than this you can order your terms alphabetically byĀ adding this property to the shortcode:Ā alpha_grouping=1

How to customize its CSS ?

  1. Add this code to your theme’sĀ functions.phpĀ file:Ā add_filter( 'mctl_css', '__return_false' );
  2. Copy everything fromĀ css/multi-column-taxonomy-list.cssĀ into your theme’sstyle.css
  3. Change the CSS properties in your theme’sĀ style.cssĀ as needed

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.