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:
- You can create a new page and add the shortcode
[mctl]
to the content. OR - 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:
- You set
public => false
when you registered the taxonomy. It should be true:public => true
- 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 ?
- Add this code to your theme’s
functions.php
file:add_filter( 'mctl_css', '__return_false' );
- Copy everything from
css/multi-column-taxonomy-list.css
into your theme’sstyle.css
- Change the CSS properties in your theme’s
style.css
as needed