Title: Author&#039;s first post in loop..
Last modified: August 19, 2016

---

# Author's first post in loop..

 *  [theApe](https://wordpress.org/support/users/theape/)
 * (@theape)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/authors-first-post-in-loop/)
 * I’ve been racking my brain and Google to try find a simple way to have the loop
   regardless of use, produce a link to the first date-wise post of the posting 
   author. Like being able to produce a list of the authors recent posts attached
   to a post, but not quite!
 * Any links to helpful material or suggestions would be appreciated.
 * Quick example…
    <loop starts> Posted by Jim (today’s date) <title> latest post
   title </title> <content> latest content </content> – INSERT JIM’S FIRST EVER 
   POST ON THE SITE HERE – <loop end>

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/authors-first-post-in-loop/#post-1797395)
 * the snippet below shows a link to the **author’s first post**
    (you can figure
   out yourself, how to show a different text):
 *     ```
       <?php $writer = get_the_author();
       $first_post_by_author = get_posts('numberposts=1&author_name='.$writer.'&orderby=date&order=ASC');
       if($first_post_by_author) foreach($first_post_by_author as $first_post_by_author) {
       setup_postdata($first_post_by_author); ?>
       <a href="<?php echo get_permalink($first_post_by_author->ID); ?>" ><?php echo $writer; ?>&rsquo;s first post</a>
       <?php } ?>
       ```
   
 * [http://codex.wordpress.org/Function_Reference/get_the_author](http://codex.wordpress.org/Function_Reference/get_the_author)
   
   [http://codex.wordpress.org/Template_Tags/get_posts](http://codex.wordpress.org/Template_Tags/get_posts)
   [http://codex.wordpress.org/Function_Reference/query_posts#Author_Parameters](http://codex.wordpress.org/Function_Reference/query_posts#Author_Parameters)
 *  Thread Starter [theApe](https://wordpress.org/support/users/theape/)
 * (@theape)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/authors-first-post-in-loop/#post-1797432)
 * Brilliant! That was exactly what I was looking for! It was the order=ASC that
   I was missing. 🙂
 * Thank you very much! Much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Author's first post in loop..’ is closed to new replies.

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * 2 replies
 * 2 participants
 * Last reply from: [theApe](https://wordpress.org/support/users/theape/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/authors-first-post-in-loop/#post-1797432)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
