Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Add timestamps to post dates.
Plugin Name: Posted At
Plugin URI:
Description: Add timestamps to post dates.
Author: Benedict Eastaugh
Version: 1.0
Author URI:
function add_times_to_post_dates($date, $d, $post) {
if ($post->ID > 0)
$date = sprintf(__('%s at %s', 'tarski'),
get_post_time(get_option('time_format'), false, $post));
return $date;
add_filter('get_the_time', 'add_times_to_post_dates', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.