Author's List Order by last name
-
I’m sure this is a quick fix–how can I sort this list alphabetically by last name?
<?php
$excluded = “1,3,5”; // To exclude IDs 1,3,5
$sql = ‘SELECT DISTINCT post_author FROM ‘.$wpdb->posts. ” WHERE post_author NOT IN ($excluded)”;
$authors = $wpdb->get_results($sql);
if($authors):
foreach($authors as $author):
?>Thanks so much
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Author's List Order by last name’ is closed to new replies.