Not many ways to style the wp_list_author
but you can use the style => 'list'
argument to display authors in <li>
and then style your <ul>
as wanted.
https://developer.wordpress.org/reference/functions/wp_list_authors/
<div class="container">
<div class="row">
<div class="col-lg-4">
<ul class="d-flex">
<?php
wp_list_authors( array(
'exclude' => 4,
'show_fullname' => 1,
'optioncount' => 1,
'orderby' => 'post_count',
'order' => 'DESC',
'number' => 60,
'style' => 'list',
) ); ?>
</ul>
</div>
</div>
</div>
For example adding the d-flex
class to your <ul>
You could also use the get_users
function.
https://developer.wordpress.org/reference/functions/get_users/
I update my code below with this query you can have the bootstrap grid 😉
<?php
$users = get_users('');
$query = get_users( [ 'role__in' => [ 'author', 'editor' ],
'number'=> 60,
'exclude' => 4,
'orderby' => 'post_count',
'order' => 'DESC', ]);
?>
<div class="container">
<div class="row">
<?php
foreach($query as $q) { ?>
<div class="col-lg-4">
<?php echo get_the_author_meta('display_name', $q->ID);?>
</div>
<?php } ?>
</div>
</div>