Jean is an Internet and Multimedia specialist with a keen interest in music, technology, business, sports and psychology.
Jean Galea
Internet Consultant in Malta
Jean Galea: entrepreneur and internet specialist. Holding an M.Sc. in Multimedia & Internet Computing from Loughborough University, Jean specialises in web design and development, email marketing systems and general internet consultancy.
How to display 2 lists of links near each other
In this tutorial we will be achieving two lists of links next to each other, as shown in the image:
First of all log into your WordPress wp-admin section, go to Links > Link Categories and create two new categories called Col1 and Col2.
Insert a few links under each category.
Next open up your template and in the place where you want the two columns to appear, enter the following code:
<h3>Links</h3> /* style the h3 as you wish */
<ul>
<?php wp_list_bookmarks('category_name=col1&title_li=0&categorize=0'); ?>
</ul>
<ul class="col2>
<?php wp_list_bookmarks('category_name=col2&title_li=0&categorize=0'); ?>
</ul>
As you can see the important parameters are category_name (set to either col1 or col2), title_li and categorize (set to 0 because I don’t want the category names to be shown).
In your CSS remember to set ul to float:left and set a width according to the style you want to achieve. I am using the col2 class to achieve a 20px left margin on the 2nd column.
Hope you find this useful.
Related posts:
- Using CSS to Generate Footnote Links for Printing
- Enhancing WordPress’ wp_list_pages with Page Lists Plus
- Filter for excluding certain categories in WordPress
- Links to Photoshop Tutorial Sites
Leave a Reply
Thank you for reading this blog. Please check back for new posts.


