• How do I exclude the admin from the following query? Thanks!

    <?php
    $theauthors = $wpdb->get_results("SELECT * FROM $wpdb->users ORDER BY display_name");
    foreach ($theauthors as $theauthor) {
    echo "<option value=\"/archives/author/$theauthor->user_nicename/\">";
    echo "$theauthor->display_name</option>";
    }
    ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How Do i Exclude Admin From This Query?’ is closed to new replies.