Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
developerora
tagDiv Member

Hi, never mind. duplicated this and it works perfectly

$buffy .= $this->get_block_pagination();

developerora
tagDiv Member

Hi,

I tried implementing the above but the site frontend disappearedand the code also has some errors. Kindly help.

developerora
tagDiv Member

Hi, I amanged to get the time ago feature using the code below

<?php $post_id = $this->post->ID;?>
<?php echo human_time_diff( get_the_time(‘U’, $post_id), current_time(‘timestamp’) ) . ‘ ago’; ?>

is there any possible way of returning to the actual date once the time ago counter hits 24 hours? i.e. once I add a new post, it will read an hour ago, 3 hours ago and once it hits 24hrs ago or a day ago, it should read 21st February 2018 or whichever date format is selected on the backend etc.

Viewing 3 posts - 1 through 3 (of 3 total)