Support » Plugin: Latest Posts by Author » [Plugin: Latest Posts by Author] Display date next to latest posts by author

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Alex Mansfield

    (@alexmansfield)

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

    $html .= ‘

  • 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.

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

Plugin Author Alex Mansfield

(@alexmansfield)

Please do! Sorry about the long wait.

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?

Plugin Author Alex Mansfield

(@alexmansfield)

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

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Latest Posts by Author] Display date next to latest posts by author’ is closed to new replies.