Title: Dates to posts
Last modified: September 8, 2017

---

# Dates to posts

 *  [dubsy](https://wordpress.org/support/users/dubsy/)
 * (@dubsy)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/dates-to-posts/)
 * I know this was discussed in a previous topic but I’m having issues with the 
   provided solution. I follow the idea of that topic (I have a child theme already
   created), and after copying the file to the child theme and editing it, I was
   still unable to make the date appear at the top of the post.
 * Longform have the file template-tags.php saved in a sub folder inc. So, I recreated
   the same structure in my child theme and saved template-tags.php into it.
 * I then followed the instruction to locate the text: // Set up and print post 
   meta information which stated to replace the line below with this code:
 * `printf( '<span class="byline">' . date('d-m-Y', strtotime($post->post_date)).'&
   nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;<span class="author vcard">BY
   <a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>',`
 * But it doesn’t appear to have worked. Any suggestions?
 * Thanks.
    -Tina
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdates-to-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Dates to posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/longform/1.7.1/screenshot.png)
 * Longform
 * [Support Threads](https://wordpress.org/support/theme/longform/)
 * [Active Topics](https://wordpress.org/support/theme/longform/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/longform/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/longform/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dubsy](https://wordpress.org/support/users/dubsy/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/dates-to-posts/)
 * Status: not resolved