WordPress.org

Ready to get started?Download WordPress

Forums

Latest Posts by Author
Display date next to latest posts by author (6 posts)

  1. Birgit
    Member
    Posted 3 years ago #

    Is there a possibility of including the date of each post for this plugin, please? Preferably (dd.mm.yy) format.
    http://wordpress.org/extend/plugins/latest-posts-by-author/

  2. Alex Mansfield
    Member
    Plugin Author

    Posted 3 years ago #

    Create a new line just after this line in the plugin (I think it should be line 24):

    $html .= '

  3. guid.'">'.substr($numpost->post_title, 0, 10).'';

    In the blank line you just created, place the following code to display the date:

    $html .= get_the_date('', $numpost->post_date);

    It will use whatever date format you have specified on the Settings>General page of the WordPress admin.

  • Birgit
    Member
    Posted 3 years ago #

    Thank you, I will have to test this over the weekend! Will post back. :)

  • Alex Mansfield
    Member
    Plugin Author

    Posted 3 years ago #

    Please do! Sorry about the long wait.

  • Birgit
    Member
    Posted 3 years ago #

    The flu got me, but I've finally been able to test this now. It seemed to work like a charm, but then I noticed that it's returning the date of the latest posted entry only, for all listed entries. Tips, please?

  • Alex Mansfield
    Member
    Plugin Author

    Posted 3 years ago #

    That's strange. Try giving this a shot instead:

    $html .= get_the_time('', $numpost->post_date);

  • Topic Closed

    This topic has been closed to new replies.

    About this Plugin

    About this Topic

    Tags