Change sort order of blogroll from name in wordpress
I dont think im the only one who doesnt neccesarily want my wordpress blogroll list to be sorted by name, i’d sooner be able to choose the order.
For me, I added the bookmarks in the order I wanted so the link_id column in the database was the one I wanted it to be sorted by.
To do this you need to modify the file wp-includes/bookmark-template.php
I’d suggest you make a backup of this file before you edit it, just incase, and dont forget to leave the last extention as php so it can’t be accessed by anyone whilst its there – i.e bookmark-template.bak.php etc..
find the line in that file that says
function wp_list_bookmarks($args = ”) {
$defaults = array(
‘orderby’ => ‘name’, ‘order’ => ‘ASC’,
You want to change name to be id, and that will sort your blogroll by ID rather than Name.