title: How to split child categories into columns using wp_nav_menu()?
body: <p>I have a navigation menu which uses Wordpress' <code>wp_nav_menu()</code> function to first render the parent categories and all child categories to that category in a drop down sub menu. The markup looks as follows:</p>
  
  <pre><code>&lt;li id="menu-item-256" class="category-electronics menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
      &lt;a class="expander-btn" href="#"&gt;
      &lt;div class="drop-down"&gt;
          &lt;div class="arrow left"&gt;&lt;/div&gt;
          &lt;ul class="sub-menu"&gt;
              &lt;li id="menu-item-272" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-271" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-270" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-269" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-268" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-267" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-266" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-265" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-264" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-263" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-262" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
              &lt;li id="menu-item-261" class="menu-item menu-item-type-taxonomy menu-item-object-category"&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I would like to be able to split the child categories up in columns (with 5 or 6 links in each column), but don't really know how to go about to accomplish this. I've spent almost 30 hours on this now to no avail, so any ideas would be much appreciated. Thanks in advance!</p>