iTheme has been columnized! i3Theme Widgetized
May 08

S. Costa asked me whether I can reorder my links in the i3Theme such that it’s sorted according to the name alphabetically and this makes me realised, why aren’t such options available in the dashboard anymore.

I remembered that it used to have the options until they have changed it in the version 2.0 limit the options to the programmers only. Weird decision by the programmers at WordPress. If anyone know why they make such a huge change in the link section in WordPress, please let me know.

Nevertheless, I have the fix for you and it’s going to be pretty simple and harmless. ;) This trick can be apply to both iTheme and i3Theme, and practically any WordPress themes.

Order your links (Before) Order your links (After)

Just jump straight to your Dashboard > Presentation and edit your sidebar where you have your links on. For the case of i3Theme, the default sidebar with links is on the right, hence, we edit the right sidebar file.

Under the links section, you look get_links such as below:

<?php get_links(’-1′, ‘<li>’, ‘</li>’, ‘<br />’, FALSE, ‘id‘, FALSE, FALSE, -1, FALSE); ?>

change the sixth parameters to:

<?php get_links(’-1′, ‘<li>’, ‘</li>’, ‘<br />’, FALSE, ‘name‘, FALSE, FALSE, -1, FALSE); ?>

Finally, save your file and you are ready to go.

Other than sorting according to name, there are other options too. More information about the functions get_links can be found here.

You may also like to read these:
iTheme has been columnized!

iTheme Navbar CSS bug

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Facebook
  • del.icio.us
  • Mixx
  • Google
  • Technorati
  • Live
  • NewsVine
  • YahooMyWeb
  • e-mail

written by mickeyckm

One Ping to “Order your links, dude!”

  1. i3Theme Widgetized Says:

    [...] Me Order your links, dude! May [...]


9 Responses to “Order your links, dude!”

  1. 1. stevenlichen Says:

    Noted, practical advice as always!

    order
    (string) Value to sort links on. Defaults to ‘name’ unless you pass the value of ” (empty), in which case it sets to ‘id’. Valid options:

    * ‘id’
    * ‘url’
    * ‘name’
    * ‘target’
    * ‘category’
    * ‘description’
    * ‘owner’ - User who added link through Links Manager.
    * ‘rating’
    * ‘updated’
    * ‘rel’ - Link relationship (XFN).
    * ‘notes’
    * ‘rss’
    * ‘length’ - The length of the link name, shortest to longest.

  2. 2. stevenlichen Says:

    My contribution for an enhanced sidebar (Recent Comments & Articles functionalities added):

    http://lichen.ifastnet.com/2007/05/08/add-recent-articles-comments-functionalities-to-itheme/

  3. 3. S. Costa Says:

    Thank you…

  4. 4. Agam Says:

    and, what about category? I want make categories for my links.
    Thanks alot.

  5. 5. Agam Says:

    Why it do not work on my sidebar?
    Parse error: syntax error, unexpected ‘,’ in /wp-content/themes/itheme-1-1/sidebar.php on line 61

  6. 6. mickeyckm Says:

    Agam: Hi, I’m not sure about what’s happening there. However, it works fine right out of the box. Is it because u tweak the wordpress code?

  7. 7. Reyn Says:

    I used to have images with my link and now they’re gone.. how do i bring them back or is it possible to bring them back?

  8. 8. mickeyckm Says:

    Reyn: Can I have a sample to look at it?

  9. 9. Reyn Says:

    Figured it out actually.. by reading the documentation on “get links”

    Thanks!

Leave a Reply