• Having read the Codex for wp_list_bookmarks(), it seems my only choices for sorting the blogroll are by ID or by name… and since I can’t edit the ID without going into the database (yuck), this effectively means I’m stuck with chaos or alphabetical. Why can’t I display my bookmarks in the order I want without database or template hacks? (I would settle for a plugin that added the controls back!)

    First person to mention separation of presentation and content gets a trouting… I do PHP development for a living and teach a course in web design on the side, and I’m not buying that this is presentation vs. content, or if you really want to argue that the dashboard is only for managing content, then please remove the Theme Selector and Theme Editor as well.

    Second question, it used to be that my link categories could have subcategories and these would be displayed as nested lists. I’m guessing that’s going to require rewriting wp_list_bookmarks() to become recursive… and I suppose I could, but I’d rather not mess with core files. Is there a way to recreate the sub-list behavior, or is that function overwritable with a plugin? I think I can figure out how to write a plugin, if necessary.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I must be missing something because it looks like the orderby parameter of the template tag, wp_list_bookmarks(), has 13 different possibilities.

    The category_orderby is limited to ID and name though.

    Thread Starter infocynic

    (@infocynic)

    Yeah, it’s category_orderby that’s the problem. If I have categories Bart (id 1), Lisa (id 2), and Homer (id 3), and I want Homer, then Bart, then Lisa, I can’t get it. My choices are:

    B L H (id asc)
    H L B (id desc)
    B H L (name asc)
    L H B (name desc)

    Also looks like the hierarchical ability is ‘shutoff’, probably because the category_orderby is only by name and id.

    Yeah, the category_orderby is actually restricted to name and id by the get_categories function.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blogroll sorting and link subcategories in 2.2’ is closed to new replies.