WordPress.org

Ready to get started?Download WordPress

Forums

Recent Posts with Excerpts
[resolved] Date-bug fix (5 posts)

  1. RippedSpine
    Member
    Posted 8 months ago #

    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/

  2. Seahawksean
    Member
    Posted 7 months ago #

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

  3. Seahawksean
    Member
    Posted 7 months ago #

    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.

  4. Stephanie Leary
    Member
    Plugin Author

    Posted 7 months ago #

    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.

  5. Seahawksean
    Member
    Posted 7 months ago #

    Awesome! Thank you @Stephanie Leary! I'll keep an eye out for the plugin update notification.

Reply

You must log in to post.

About this Plugin

About this Topic