Sortable Nicer Archives Problem
-
I have used Sortable Nicer Archives for a long time. It works well in WP 1.*. But after upgrade to 2.0, it returns some errors:
——————
WordPress database error: [Unknown column ‘user_level’ in ‘where clause’]
SELECT * FROM wp_users WHERE user_level > 0
Warning: Invalid argument supplied for foreach() in /home/…/archives.php on line 74
——————The related codes are:
——————
function show_author_select() {
global $wpdb, $tableusers, $author;
$users = $wpdb->get_results(“SELECT * FROM $tableusers WHERE user_level > 0“, ARRAY_A);
$output .= ‘<option value=””>All Authors</option>’.NL;
foreach ($users as $user) {
$output .= ‘<option value=”‘.$user[‘ID’].'”‘;
if ($user[‘ID’] == $author) {
$output .= ‘selected=”selected”‘;
}
$output .= ‘>’.$user[‘user_nickname’].'</option>’.NL;
}
$output = ‘<select name=”author”>’.NL.$output.'</select>’.NL;
echo $output;
}
——————
Can anybody help me to solve this problem?
Thank you!
- The topic ‘Sortable Nicer Archives Problem’ is closed to new replies.