I would like to do something a little simpler than changing to relative time. Alas, I only know enough about coding to get myself in trouble. I tried adding the following to my theme’s functions file, but (aside from the fact that it’s quite unwieldy) it didn’t work at all.
/*...............
Changing date format from 'M j, H:i' to 'l, j F Y' on Better_Recent_Comments_Util
...............*/
function new_default_shortcode_args() {
return array(
'number' => 5,
'format' => self::get_comment_format(),
'date_format' => 'l, j F Y',
'avatar_size' => 50,
'post_status' => 'publish',
'excerpts' => true
);
}
add_filter('default_shortcode_args', 'new_default_shortcode_args');
The description of the plugin implies that the date format can be changed in the shortcode
Options available with the shortcode:
[…] date_format – the PHP date format to use. Defaults to ‘M j, H:i’. See this cheat sheet for a full list of date and time options.
Rather than imposing an arbitrary date format, please explain how to change the coding to use the date format that is in the WP settings: date(get_option('date_format'))
If I knew how to do this, I would…. Thank you for any help that can be offered on this.
E Morris