Title: Adding the date to a static mini-loop
Last modified: August 18, 2016

---

# Adding the date to a static mini-loop

 *  [tancred](https://wordpress.org/support/users/tancred/)
 * (@tancred)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/adding-the-date-to-a-static-mini-loop/)
 * Hi
    I have used the mini-loop from here to put the post titles on a static page.
   [http://codex.wordpress.org/Creating_a_Static_Front_Page](http://codex.wordpress.org/Creating_a_Static_Front_Page)
 * This works well but I would like to try and include the post date as well. I 
   read through the codex and thought perhaps adding
    `$np->post_date` to the line`
   printf ("<li><a href="index.php?p=%s">%s</a></li>", $np->ID,$np->post_title);`
   might work but that did not display anything (no errors but the titles were still
   showing)
 * So… Can anyone suggest a way to include the date in the mini-loop?
 * Thanks

The topic ‘Adding the date to a static mini-loop’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tancred](https://wordpress.org/support/users/tancred/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/adding-the-date-to-a-static-mini-loop/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
