Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Human time difference – won't work Reply To: Human time difference – won't work

#190288
stanmoor
Participant

@chrisburton

Hi Chris,

The code you’ve copied above (from what I can see) is the same as the theme’s default but with an additional ‘;’ – I’m looking to have the human_time_diff function in there instead of the get_the_time. The code I pasted in my very first message works fine.

Are you suggesting I try

$cb_date = ‘<i class=”fa fa-clock-o”></i> <time class=”updated” datetime=”‘ . human_time_diff(‘Y-m-d’, $cb_post_id) . ‘”>’ . date_i18n( get_option(‘date_format’), strtotime(human_time_diff(“Y-m-d”, $cb_post_id ))); . ‘</time>‘;

Thanks