Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • great! thanks for the info. here’s what i ended up doing …

    above line 155
    function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $noncontrib = true, $feed = ”, $feed_image = ”) { global $wpdb;

    line 155
    $query = “SELECT ID, user_nickname, user_firstname, user_lastname, user_nicename from $wpdb->users ” . ($exclude_admin ? “WHERE user_login <> ‘admin’ ” : ”) . ($noncontrib ? “WHERE user_level > 0 ” : ”) . ” ORDER BY user_nickname”; $authors = $wpdb->get_results($query);

    worked like a charm.

    i really need a way to exclude registered users from the author-list. the problem i run into is that the registered users were previously authors who posted on the blog. i demoted them to registered users because they are no longer participating in the class… any suggestions on how i can preserve their posts but remove them from the author list and/or remove their accounts altogether?

Viewing 2 replies - 1 through 2 (of 2 total)