Support » Plugin: Recent Posts with Excerpts » Date-bug fix

  • Resolved RippedSpine



    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>';


    if (!empty($date))
    echo '<h3 class="date">'.get_the_time($date, $post).'</h3>';

    I hope this helps 🙂

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


    I just came to this forum to inform the developer of this bug and to find a solution. Thank you for sharing this.



    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


    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.



    Awesome! Thank you @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.