WordPress.org

Support

Support » How-To and Troubleshooting » How to take the posts from a specific author

How to take the posts from a specific author

  • Hello, i am working in a blog which has several authors and every one of them can post. I made a biography of everyone author and i linked it in his avatar pic. I am trying to add in the sidebar thumbnails for the posts which every author has posted. My problem is that only the 9 most recently thumbnails posted are shown (was 9 post per page). how can i increase the number of the thumbnails from the specific author. I use this code:

    <?php
        while ( have_posts() ) : the_post(); ?> 
    
        <div class="thumbnail-post tooltip" title="<?php the_title(); ?>">
          <a href="<?php the_permalink(); ?>">
            <?php
              $args = array('class' => "thumbnail-size");
              echo get_the_post_thumbnail( $post->ID, 'thumbnail', $args );
            ?>
          </a>
        </div>
    
    <?php endwhile; // End the loop while. ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to take the posts from a specific author’ is closed to new replies.
Skip to toolbar