I understand that you can use <?php list_authors(TRUE, TRUE, TRUE); ?> to display the list of all the authors on the site. But how would you go about setting up a grid with a picture of each author, their name, and a description?
I’m already using user photo to grab their image, I’m just not sure how to loop this in a grid format…
Code:
<h2>About the author</h2>
<h4>">
<?php the_author_firstname(); ?> <?php the_author_lastname(); ?></h4>
<div class="clearfix">
<div class="post">
<div class="right">"><?php userphoto_the_author_photo(); ?></div>
<p><?php the_author_description(); ?></p>
<p>/?author=<?php the_author_ID(); ?>">
Read more articles by <?php the_author_firstname(); ?> <?php the_author_lastname(); ?>
</p>
<p> Total articles: <?php the_author_posts(); ?></p>
(von: adamwork)
Hier noch 3 weitere Ergebnisse dieses Threads:
Re: How to display grid of authors :: Reply by Joern
13. Jul. 2010 (von: Joern)
list_authors is now wp_list_authors and loops in itself with some arguments you can set.So here you can't include the image of the 'user photo' plugin (userphoto_the_author_photo).You have to create a custom loop, a sample query for users you find here:List…
Re: How to display grid of authors :: Reply by adamwork
13. Jul. 2010 (von: adamwork)
joern thanks for getting back. the top version works well, but displays the admin.the bottom version is good, but only displays the first name over and over again.Therefore, how can I include the exlude admin into the first one?also, where…
Re: How to display grid of authors :: Reply by Joern
13. Jul. 2010 (von: Joern)
no idea how to exclude the admin in top query, you could do something like this inside the loop, it will jump the author with id=1:Code:if ( '1' == $author->ID ) { continue;}no idea again if following code will show…