WordPress.org

Ready to get started?Download WordPress

Forums

Links in alphabetical order? (8 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I can get my links to show in alphabetical order in the manage links page, but is it possible to get them to show up in alphabetical order in the blog itself?
    Thanks.

  2. southerngal
    Member
    Posted 10 years ago #

    My links are in alphabetical order. It should be something that you declare in your code for the links. You do mean on the sidebar, right?
    <?php wp_get_linksbyname('money') ?> This shows my money links in the sidebar on my portal page. They are in alphabetical order.
    You may want to check out this page for more help. :)

  3. TechGnome
    Moderator
    Posted 10 years ago #

    I currently have mine sorted by name as well... works jsut fine for me. I think it's an option in the link management page, yes?
    On a related note: Does anyone know how I can set the order of the categories, but have the links sorted by name? Currently the categories are sorting by name as well, I'd like to give them "weight" so that some categories come before others. Other wise, I have give creative names to get them sorted right. If there isn't away, I'll see about providing a hack to accomplish it -(if I do it'll be _after_ the next release. no sense in doing it twice.)
    TG

  4. southerngal
    Member
    Posted 10 years ago #

    There is something on here for categories. I had a drop down when I used them. Now that multiple categories will be coming out, I will have to make some and use the drop down again. :) Just search for categories and you should find it...I am all over that thread, so look for one with my name in it.

  5. notthatugly
    Member
    Posted 10 years ago #

    Slightly off-topic, but I'm really confused by the number of different tags people seem to be using to call the links; get_links, get_links_list, wp-get_linksbyname, etc. etc. I looked at the page in the docs but that just seemed to be about the admin side, rather than the calls. I'm going to have a root around in the php files to see if they're documented there.
    (I remember there being something in the dev blog about get_links_list, but I can't find a link to the archives. I'm slow today.)

  6. southerngal
    Member
    Posted 10 years ago #

    notthatugly, I use <?php wp_get_linksbyname('money') ?> as I have a portal page and I wanted to put other things besides reads on it. I have quite a few different categories and linksbyname seems to work for what I want to do. :)

  7. Anonymous
    Unregistered
    Posted 10 years ago #

    Nope, it's still not happening. The link to the reference page and 'Order by' only lists the links alphabetically in admin's links manager page. When you go 'View site' the links under the 'links' heading are still in the order that I added them originally. All the entries in 'categories' show up alphabetically automatically though?

  8. macewan
    Member
    Posted 10 years ago #

    <?php get_links(-1, '

  9. ', '
  10. ', '', 0, 'name', 0, 0, -1, -1)?>
    instead of
    <?php get_links(-1, '

  11. ', '
  12. ', '', 0, '_updated', 0, 0, -1, -1)?>
    this is under the menu section of your index.php

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.