I am using custom taxonomies. I have multiple categories and each category has multiple children. I would like to display the categories in two columns on my homepage similar to linkcentre.com.
I tried using wp_list_categories but could not split its output into two columns.
I tried this solution but it only works when there are no subcategories.
Thanks
You don’t need any code changes to your PHP or html!
Assuming the following code was used:
Resulting in:
Use CSS along the following lines:
Finally, we need a clearing element at the end ( or on the container containing the page list call ). e.g.
<div style="clear:left;"></div>
, although I would avoid inline styling where possible.The same can be done for any unordered list, categories, pages, nav menus, etc