Added by on May 26, 2012

How to Organize Your WordPress Blogroll LinksMany WordPress Themes that are released usually come with the default blogroll codes. With that code you have no control over the organization of the blogroll links in your sidebar. By default it is all organized alphabetically, but in this article we will show you how you can control how your blogroll is displayed.

The default code looks like the one below:

<?php wp_list_bookmarks(); ?>

The code above will show all links and categorizes them alphabetically. First it will organize the categories you place the links in, and then it will organize the links within the categories. But what if you just want to display a specific category of links.

First you need to make a category in your Links section of the WordPress Admin Panel. Then add links to it. Once you have done that find out the category id.

<?php wp_list_bookmarks('title_li=&category=2'); ?>

Change the number 2 to the category id, and you can now sort out your links at different areas of the template if you so desire. Now you can take the code above to the next step where you can add more parameters to actually organize the way links are organized.

There is a parameter called “Orderby” which gives the following options:

  • ‘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 now your code will look like:

<?php wp_list_bookmarks('title_li=&category=2&orderby=id'); ?>

In the above code you are telling WordPress to pull links from category 2, arrange them in list format, and to display them in the order which comes first. So link id=1 will be shown first. WordPress by default shows ascending. But you can change the order by making the following changes:

<?php wp_list_bookmarks('title_li=&category=2&orderby=id&order=DESC'); ?>

Now you are telling WordPress to show the links in the descending order. There are multiple other ways you can organize your blogroll links in WordPress. Please refer to the WordPress Codex for more instructions.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

16 Comments

  • Paul Schewe 1 year ago

    This is a very helpful post. Thanks for clearing up some of my confusion.The details are complete and clearly stated.

  • cheap burberry 1 year ago

    Hiya, I’m really glad I’ve found this info. Today bloggers publish only about gossips and internet and this is really annoying. A good web site with exciting content, this is} what I need. Thank you for keeping this web-site, I will be visiting it. Do you do newsletters? Cant find it.

  • burberry backpack 1 year ago

    Attractive section of content. I just stumbled upon your weblog and in accession capital to assert that I get in fact enjoyed account your blog posts. Anyway I抣l be subscribing to your feeds and even I achievement you access consistently rapidly.

  • animal spirits 1 year ago

    The things i have observed in terms of laptop or computer memory is the fact that there are specific features such as SDRAM, DDR or anything else, that must match up the features of the motherboard. If the computer’s motherboard is reasonably current and there are no operating system issues, improving the ram literally takes under an hour. It’s one of many easiest laptop or computer upgrade types of procedures one can visualize. Thanks for spreading your ideas.

  • submit url 1 year ago

    Hiya very nice web site!! Guy .. Beautiful .. Amazing .. I’ll bookmark your web site and take the feeds additionally?I’m happy to find so many helpful info here in the put up, we want work out more strategies on this regard, thanks for sharing. . . . . .

  • Russ Rohrscheib 1 year ago

    Gratitude for your excellent article. We are glad We have considered the time to learn this specific.

  • MBT Shoes 1 year ago

    A person always lend a hand to generate significantly posts I would express. That is the very first time that I visited your website web site and up to be able to now, My spouse and i amazed with all the analysis you’ve made to make this specific publish remarkable. Magnificent task!

  • bigfatbastard 1 year ago

    I am going to miss your blog and also the awareness into your greater ideas, those thoughts that can come to your account immediately after 6 hrs on Glowing blue, or 4 hrs in the rainfall themselves. But actually will adhere to you along with cheer to suit your needs almost all together. Head out take a look at it as well as set that straight down, and also very good making me show up along with inspiring me at the same time.

  • coffee tables with storage 1 year ago

    Hello there, just changed into aware of your weblog via Google,
    and located that it is truly informative.
    I am gonna watch out for brussels. I’ll be grateful in case you proceed this in future. A lot of folks might be benefited from your writing. Cheers!

  • oakley multi lens sunglasses 1 year ago

    The newest England Journal of Medicine reports that 9 beyond 10 doctors agree that 1 out of 10 doctors is surely an idiot.

  • Pagerank 1 year ago

    I don’t leave a bunch of remarks, but I browsed a bunch of responses on this page How to Organize Your WordPress Blogroll Links? | MildTheme – Download WordPress Themes and WordPress Templates. I do have 2 questions for you if it’s okay. Is it just me or does it look as if like a few of these comments appear like they are left by brain dead people? :-P And, if you are writing on other places, I would like to follow everything fresh you have to post. Could you post a list of the complete urls of your public sites like your linkedin profile, Facebook page or twitter feed?

  • Duncan Owensby 11 months ago

    I just want to say I am new to blogs and truly loved this web-site. Almost certainly I’m going to bookmark your blog . You actually have amazing article content. Bless you for revealing your blog site.

  • tweet adder coupon 2010 11 months ago

    If you’d like to run a individual Tweets page, you can buy Tweet adder to get a one-time payment of $55, without any repeating fees each month and also prices. You can even try out the particular tryout variation totally free before purchasing it. Once you invest in Tweet adder, you receive totally free life-time service and also upgrades

  • Issac Maez 10 months ago

    I gave you a link back on one of my pr3 pages, I hope this is ok.