I'm having trouble setting up an author archive. I've come up with a few different loops, but I can't seem to get them quite right. I just want it to list all posts by the current author.
This shows posts by the current author, but only 10 posts
(my default number, I guess):
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
<?php endif; ?>
</ul>
This one lists all post by all authors.
<?php global $post;
$args = array('numberposts' => -1);
$custom_posts = get_posts($args);
foreach($custom_posts as $post) : setup_postdata($post); ?>
<li <?php post_class($custom_classes) ?> id="post-<?php the_ID(); ?>" role="article"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endforeach;?>
This doesn't seem that hard. I'm probably missing something obvious. It seems like I need to get the author into a variable and pass it, but I thought that was assumed on the author archive. My attempts to do that just haven't worked.