Sidebar widget for post authors
-
Hi everyone,
I’m looking for a way to display a list of post authors in the sidebar, and link the names to the Authors website URL.
So far, what i found are 2 things:1/
<?php wp_list_authors('show_fullname=1&optioncount=1'); ?>which displays a list of Post authors but links them to authors archive…2/
<?php
$order = 'user_nicename';
$user_ids = $wpdb->get_col("SELECT ID FROM $wpdb->users ORDER BY $order"); // query users
foreach($user_ids as $user_id) : // start authors' profile "loop"
$user = get_userdata($user_id);
?>
<?php echo 'user_url . '">' . $user->display_name . ''; ?>
<?php
endforeach; // end of authors' profile 'loop'
?>
which doesn’t work anymore…So if anyone can help, it would be more than welcome!
The topic ‘Sidebar widget for post authors’ is closed to new replies.