Pffff. Pokud to nemá vazbu na další kód, mohlo by pomoci něco jako:
function time_ago( $type = 'post' ) {
$d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';
return human_time_diff(__('před', 'gxg_textdomain')+$d('U'), current_time('timestamp'));
}
function time_ago_comment( $type = 'comment' ) {
$d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';
return human_time_diff(__('před', 'gxg_textdomain'+$d('U'), current_time('timestamp')));
}
Ale naprosto bez záruky, nevím jak je řešeno zobrazování.