Title: Date-bug fix
Last modified: August 21, 2016

---

# Date-bug fix

 *  Resolved [RippedSpine](https://wordpress.org/support/users/rippedspine/)
 * (@rippedspine)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/date-bug-fix/)
 * Hello!
 * First of all, thanks for a lovely plug-in, it’s very useful.
 * Secondly, I had some problems getting the post-date into the <h3>-tag and I found
   a solution:
 * change this code on line 91:
 *     ```
       if (!empty($date))
       echo '<h3 class="date">'.the_time($date).'</h3>';
       ```
   
 * to:
 *     ```
       if (!empty($date))
       echo '<h3 class="date">'.get_the_time($date, $post).'</h3>';
       ```
   
 * I hope this helps 🙂
 * [http://wordpress.org/plugins/recent-posts-with-excerpts/](http://wordpress.org/plugins/recent-posts-with-excerpts/)

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

 *  [Seahawksean](https://wordpress.org/support/users/seahawksean/)
 * (@seahawksean)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/date-bug-fix/#post-4052297)
 * I just came to this forum to inform the developer of this bug and to find a solution.
   Thank you for sharing this.
 *  [Seahawksean](https://wordpress.org/support/users/seahawksean/)
 * (@seahawksean)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/date-bug-fix/#post-4052298)
 * Actually, i just tried adding this code but it didn’t have any affect on where
   the date is located. It’s still not in the header tag.
 * Where did you put a copy of this php file in your theme? On the root level or
   did you make a plugins folder beneath the root and put it in there? Or can you
   only alter the core file?
 * Thanx for the advice.
 *  Plugin Author [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * (@sillybean)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/date-bug-fix/#post-4052312)
 * RippedSpine is right, it should be get_the_time(). I’ll update the plugin in 
   a moment.
 * Seahawksean, you would be editing the plugin file, not a theme file. But you 
   won’t need to in about five minutes.
 *  [Seahawksean](https://wordpress.org/support/users/seahawksean/)
 * (@seahawksean)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/date-bug-fix/#post-4052313)
 * Awesome! Thank you [@stephanie](https://wordpress.org/support/users/stephanie/)
   Leary! I’ll keep an eye out for the plugin update notification.

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

The topic ‘Date-bug fix’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recent-posts-with-excerpts.svg)
 * [Recent Posts with Excerpts](https://wordpress.org/plugins/recent-posts-with-excerpts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-posts-with-excerpts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-posts-with-excerpts/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-posts-with-excerpts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-posts-with-excerpts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-posts-with-excerpts/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [get_the_time](https://wordpress.org/support/topic-tag/get_the_time/)
 * [the_time](https://wordpress.org/support/topic-tag/the_time/)

 * 4 replies
 * 3 participants
 * Last reply from: [Seahawksean](https://wordpress.org/support/users/seahawksean/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/date-bug-fix/#post-4052313)
 * Status: resolved