{"id":65846,"date":"2011-12-06T01:00:33","date_gmt":"2011-12-06T06:00:33","guid":{"rendered":"http:\/\/wpmu.org\/?p=65846"},"modified":"2011-12-06T14:50:04","modified_gmt":"2011-12-06T19:50:04","slug":"wordpress-plugin-display-categories-in-multiple-columns","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/wordpress-plugin-display-categories-in-multiple-columns\/","title":{"rendered":"[WordPress Plugin] Display Categories in Multiple Columns"},"content":{"rendered":"<p><a rel=\"lightbox[65846]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wordpress-plugin-display-categories-in-multiple-columns\/columns-big\/\" rel=\"attachment wp-att-65855\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-65855\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/columns-big.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"616\" height=\"428\" \/><\/a><br \/>\nIf you\u2019ve ever had a site with lots of categories, then you know what a pain navigation can be.<\/p>\n<p>The relatively new WordPress custom menu system can help you show some of your main categories in your sidebar. But somewhere, however, <strong>you are going to want a page that lists ALL of your categories<\/strong> in a way that doesn\u2019t seem overwhelming and unattractive.<\/p>\n<p>Perhaps you might even want to do it on your home page.<\/p>\n<h2><strong>Columns!<\/strong><\/h2>\n<p>The answer for such a problem is to <strong>divide your categories up into columns<\/strong>, and the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/multi-column-taxonomy-list\/\" rel=\"noopener\" target=\"_blank\">Multi-Column Taxonomy List plugin<\/a> will do just that.<\/p>\n<p>After installing and activating the plugin, you can simply place the \u00a0shortcode <code>[mctl]<\/code>into a page, and all of your categories will be listed for you there.<\/p>\n<p>If you want to put the categories on your homepage, you can simply make that page your homepage, or you can add the following into your home page file wherever you\u2019d like the categories to show up:<\/p>\n<p><code>&lt;?php multi_column_tax_list(); ?&gt;<\/code><\/p>\n<p>This is what it looks like out of the box.<\/p>\n<p><a rel=\"lightbox[65846]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wordpress-plugin-display-categories-in-multiple-columns\/3-columns\/\" rel=\"attachment wp-att-65847\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-65847\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/3-columns.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"618\" height=\"209\" \/><\/a><\/p>\n<p>If you\u2019d like, you can play around a little with the code and change the appearance.<\/p>\n<p>&nbsp;<\/p>\n<p>***********************************************<br \/>\n***********************************************<\/p>\n<p><span style=\"color: #ff0000;\"><strong>&gt;&gt; UPDATE<\/strong><\/span><\/p>\n<p>As pointed out in the comments by <cite>Per S\u00f8derlind<\/cite>, a better way to change the number of columns is to include parameters in the shortcode.<\/p>\n<p>For example, if you want five columns instead of three, then use the following shortcode:<\/p>\n<p>[mctl columns=&#8221;5&#8243;]<\/p>\n<p>***********************************************<br \/>\n***********************************************<\/p>\n<p><strong><span style=\"color: #ff0000;\"><br \/>\nThe following step is not necessary. See the update above.<\/span><\/strong><\/p>\n<p>I changed the default 3-column layout to five columns by editing the main file.<\/p>\n<p><em>Plugins &gt;&gt; Editor &gt;&gt; Multi-Column Taxonomy List (top right pull down menu) &gt;&gt; multi-column-taxonomy-list.php<\/em><\/p>\n<p><a rel=\"lightbox[65846]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wordpress-plugin-display-categories-in-multiple-columns\/code-4\/\" rel=\"attachment wp-att-65848\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-65848\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/code.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"616\" height=\"450\" \/><\/a><\/p>\n<p>Here\u2019s the result.<\/p>\n<p><a rel=\"lightbox[65846]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wordpress-plugin-display-categories-in-multiple-columns\/5-columns\/\" rel=\"attachment wp-att-65849\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-65849\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/5-columns.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"617\" height=\"278\" \/><\/a><\/p>\n<h2><strong>A Clean, Functional Solution<\/strong><\/h2>\n<p>This plugin isn\u2019t fancy, but it works. I\u2019ve had the need myself in the past for a plugin like this, and all the fancy ones I tried never worked. In the end I had to hard code my file with a lot of mess. It worked, but it wasn\u2019t pretty. I wish I\u2019d had a nice, simple solution like this plugin then.<\/p>\n<p><strong>Download the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/multi-column-taxonomy-list\/\" rel=\"noopener\" target=\"_blank\">Multi-Column Taxonomy List plugin here.<\/a><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Photo: <a href=\"http:\/\/www.bigstockphoto.com\/image-19291364\/stock-photo-washington-dc-architectural-detail-of-columns-and-marble-steps.-critical-focus-on-middle-column.\" target=\"_blank\">Washington DC Architectural detail of columns and marble steps. Critical focus on middle column\u00a0 <\/a>from BigStock.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Need to display lots of categories? This plugin\u2019s for you.<\/p>\n","protected":false},"author":84404,"featured_media":65854,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[4],"tags":[],"tutorials_categories":[],"class_list":["post-65846","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/65846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/84404"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=65846"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/65846\/revisions"}],"predecessor-version":[{"id":216208,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/65846\/revisions\/216208"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/65854"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=65846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=65846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=65846"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=65846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}