Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Hi. I am trying to change the date format on the social wall from ” d-m-y h:i” to ” 1 min ago”
I tried to integrate the following but had no success.
human_time_diff( get_the_time(‘U’), current_time(‘timestamp’)
What filter should I add? for the following userwall.php file?
<?php $timestamp = strtotime($post->post_date);
$new_date = date(‘M-d h:i’, $timestamp);?>
<div class=”post-date”><?php _e(“”,”userpro-userwall”);echo $new_date;?></div>
Below is what I have so far:
function wpse_relative_date() {
return human_time_diff( get_the_time(‘U’), current_time( ‘timestamp’ ) ) . ‘ ago’; }
add_filter( ‘get_the_date’, ‘wpse_relative_date’ );
add_filter( ‘get_comment_date’, ‘wpse_relative_date’ );
Hello,
This require fair amount of code changes which involves customization.
You can raise customization request on – http://codecanyon.net/user/DeluxeThemes#contact
Please feel free to let us know if there anything else we can help you with.
Thanks!
You must be logged in to reply to this topic.