WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Written by an Author (2 posts)

  1. prommafia
    Member
    Posted 4 years ago #

    I'm trying to figure out the Loop...

    The author pages currently list the past 10 post by that author, but I want to list to include all posts by that author. I also wanted to change the formatting, but the changes don't show up on the page.

    http://prommafia.com/author/admin/

    Any suggestions?

    <!-- The Loop -->
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
    <?php the_title(); ?></a>,
    Categories: <?php the_category(',');?>
    <br /><br />
      <?php endwhile; else: ?>
         <p><?php _e('No posts by this author.'); ?></p>
    
    	<?php endif; ?>
    <!-- End Loop -->
  2. MichaelH
    Member
    Posted 4 years ago #

    Before your `if(have_posts())

    <?php
    query_posts($query_string . '&showposts=-1');
    ?>

    See:
    query_posts()

Topic Closed

This topic has been closed to new replies.

About this Topic