Title: Problem displaying archives correctly
Last modified: August 18, 2016

---

# Problem displaying archives correctly

 *  [edyuban](https://wordpress.org/support/users/edyuban/)
 * (@edyuban)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/problem-displaying-archives-correctly/)
 * I’m displaying the last ten articles posted by using this, which seems to work
   pretty well.
    <?php get_archives(‘postbypost’, ’10’, ‘custom’, ‘
    - ‘, ”); ?>
       Is there a way to get the author names after each of the ten that
      are displayed? I’ve tried everything. My knowledge of PHP is limited, to say
      the least.

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/problem-displaying-archives-correctly/#post-122458)
 * I would suggest using `get_posts()` instead , as it lets you use all template
   tags you normally have available in The Loop:
    [http://wiki.wordpress.org/get_posts](http://wiki.wordpress.org/get_posts)
 *  Thread Starter [edyuban](https://wordpress.org/support/users/edyuban/)
 * (@edyuban)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/problem-displaying-archives-correctly/#post-123075)
 * That almost works except it puts my name after all of the entries rather than
   the actual author name.

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

The topic ‘Problem displaying archives correctly’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [edyuban](https://wordpress.org/support/users/edyuban/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/problem-displaying-archives-correctly/#post-123075)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
