我想按名称显示所有贡献者。以下代码仅按ID提取记录和订单,但我需要按指定数据订单:
function contributors() {
global $wpdb;
$authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users WHERE display_name <> \'admin\' ORDER BY id DESC");
foreach ($authors as $author ) {
echo get_wp_user_avatar($author->ID);
the_author_meta(\'designation\', $author->ID);
the_author_meta(\'fullname\', $author->ID);
the_author_meta(\'company\', $author->ID);
the_author_meta(\'address\', $author->ID);
the_author_meta(\'phone\', $author->ID);
}
}
你能帮帮我吗?谢谢