WordPress.org

Ready to get started?Download WordPress

Forums

assorting links in wp-admin/link-manager.php (3 posts)

  1. Chuck Reynolds
    Member
    Posted 9 years ago #

    In the link manager page - the links are sorted by the name I believe.
    What I want - for ease of use - is to sort those by Category, then within the categories, I'd like them sorted by name.
    In the link-manager.php file on line... 658 (ish) there is this
    $sql .= ' ORDER BY link_' . $sqlorderby;
    I changed mine to this:
    $sql .= ' ORDER BY cat_' . $sqlorderby;
    Now - it is ordering by category but the links in the categories are just like randomly sorted.
    How do I add a thing like... first sort by category, then my name within each category.
    thanks - rYno

  2. Chuck Reynolds
    Member
    Posted 9 years ago #

    bump please...

  3. sunshine
    Member
    Posted 9 years ago #

    If you was doing it the straight SQL-way (hacking the code) then you'd add a second parameter (or as many as you want).
    .ie: ORDER BY cat name ASC
    Which would order by cat, then with that, order by name.
    But, I haven't a clue on a simple way to hack that into WP, sorry.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.