Problem with orderby in wp_list_bookmarks()
-
I’m probably making a basic error in syntax here, but I’ve tried various combinations of single and double quotes and can’t get this to work.
According to the List Bookmarks reference, the ‘orderby’ parameter should accept multiple values as a comma-separated list.
I’m trying to use this template tag to create a ‘blogroll’ page, as the sidebar version is getting too long.
I’ve created my page template, and entered the function as follows:
<?php wp_list_bookmarks('categorize=0&category_name=Links&title_li=0&orderby=rating,name'); ?>
intending to get a list that’s sorted initially by rating, and then within groups of links with the same rating, by name.
No dice. When I use it in this format, I just get a blank space under the page title (everything else displays fine). If I take out the ‘name’ portion, it displays, but appears to be displaying links with the same rating in order of the date they were added to the database.
Have I misunderstood what I need to do here?
Thanks,
Rachael
- The topic ‘Problem with orderby in wp_list_bookmarks()’ is closed to new replies.