Title: Author Posts Link
Last modified: August 20, 2016

---

# Author Posts Link

 *  [thefatguy](https://wordpress.org/support/users/thefatguy/)
 * (@thefatguy)
 * [15 years ago](https://wordpress.org/support/topic/author-posts-link/)
 * I’ve been working on an Author profile page for a multi-author blog that is closer
   to the blog owners vision. I’ve been able to get almost everything he wants in
   there, but I’m hitting a mental block, and I might be thinking about this wrong,
   so I’m hoping someone can give me a shove.
 * First, he said he wanted the Authors five (then 10) most recent posts. So I hacked
   this into author.php:
 *     ```
       <?php
       // Set current author
       $authorid = $curauth->ID;
       // Concantenate to query string & limit to 10 latest posts
       $qargs = 'posts_per_page=10&author=' . $authorid ;
       // Execute the query to feed The Loop
       query_posts( $qargs );
       ?>
       ```
   
 * Now, he wants a link to a page with ALL of their articles at the bottom of that
   list.
 * All I can think of is some kind of link that generates a query that forces the
   use of the archive.php template. That seems crazy.
 * I suspect there’s a way to NOT restrict the inital query for The Loop, add in
   a PHP counter, and have a “All Author’s Posts…” link after the first 5 or 10 
   or whatever post excerpts. But I’m not sure how to break out of the built-in 
   author.php template invocation.
 * Any ideas? I’m feeling pretty stuck.

The topic ‘Author Posts Link’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [thefatguy](https://wordpress.org/support/users/thefatguy/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/author-posts-link/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
