Support » Plugin: Latest Posts by Author » [Plugin: Latest Posts by Author] Display date next to latest posts by author
6 years, 4 months ago
Is there a possibility of including the date of each post for this plugin, please? Preferably (dd.mm.yy) format.
6 years, 1 month ago
Create a new line just after this line in the plugin (I think it should be line 24):
$html .= ‘
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. 🙂
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?
6 years ago
That’s strange. Try giving this a shot instead:
$html .= get_the_time('', $numpost->post_date);