Title: Recent Post Date
Last modified: August 19, 2016

---

# Recent Post Date

 *  [jamiek](https://wordpress.org/support/users/jamiek/)
 * (@jamiek)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/recent-post-date/)
 * Hi I am using the following to get the latest five posts.
 *     ```
       <?php
       require('blog/wp-blog-header.php');
       ?>
   
       <?php query_posts('showposts=5'); ?>
       <?php while (have_posts()) : the_post(); ?>
       <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
       <?php endwhile;?>
       ```
   
 * I want to include the date it was posted as well next to the title.
 * How can I do this?
 * Thanks

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/recent-post-date/#post-1635598)
 * `the_time()`
    [http://codex.wordpress.org/Function_Reference/the_time](http://codex.wordpress.org/Function_Reference/the_time)
 * for instance:
    `<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent
   Link to <?php the_title(); ?>"><?php the_title(); ?></a> <?php the_time(); ?>
   <br />`

Viewing 1 replies (of 1 total)

The topic ‘Recent Post Date’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/recent-post-date/#post-1635598)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
