How to organize your wordpress blogroll links?
I wanted to do this, and there was really no tutorial out there. So I looked into wordpress codex and found this. Basically what I want to do is organize wordpress blogroll into the way that I want. By default it is organized alphabetically. And sometimes it gives you a pain. Specially when your client demands otherwise.
By default your code looks like: <?php wp_list_bookmarks(); ?>
And that is what displays all the links in your sidebar. But what if you are using wordpress as a CMS. You want different links on different pages? Well then all you do is simply make different link categories, and assign a link category to each custom page.
So then you would post a code like: <?php wp_list_bookmarks(‘title_li=&category=2′); ?>
Replace the number above with the category id, and you will get the links sorted by different categories, but that still does not solve my problem. Because links inside the category is still organized alphabetically.
So basically then you would have to use Wordpress parameters.
You can have the link in the following orders:
Orderby
- ‘id’
- ‘url’
- ‘name’
- ‘target’
- ‘description’
- ‘owner’ – User who added bookmark through bookmarks Manager.
- ‘rating’
- ‘updated’
- ‘rel’ – bookmark relationship (XFN).
- ‘notes’
- ‘rss’
- ‘length’ – The length of the bookmark name, shortest to longest.
- ‘rand’ – Display bookmarks in random order.
So then you would have to do this:
<?php wp_list_bookmarks(‘title_li=&category=2&orderby=id’); ?>
Now the above will display the oldest id meaning Id 1 first and then on. So by default it is in ascending order. You can change it to Descending order by simply changing the code a bit.
<?php wp_list_bookmarks(‘title_li=&category=2&orderby=id&order=DESC’); ?>
Ok so now all you really have to do is add & and enter the parameter.
This way you can organize your wordpress blogroll the way you like.
Now there are tons of other ways you can organize your blogroll. For example, you skip one category. Or you don’t want one category to be included so you exclude etc etc.
To find those parameters, head over to Wordpress Codex
Follow the instructions that I showed you and you would get your wordpress blogrolls organized.





















Hey, I am Syed Balkhi, The guy who is behind Balkhis Inc. I entered the industry back in 2002 not knowing a single thing. I barely spoke English at that time. In the past six years, my language barrier has been eliminated. Aside from English, now I also speak html, and php. Along with the languages I have also managed to master a few arts. Art of web-designing started when I first entered. Messing around with photoshop, I learned how to create my first web design. Now I founded a web designing firm Uzzz Productions. After running numerous amount of websites in various niche, I have mastered the art of web-development. Now I am compiling a resource of what I already know, and what I am learning on this blog. This resource is to help me if I ever need a guide to look back to, and it is help my fellow webmasters.



