Osclass Support Forums
Osclass theme support => Stela Osclass Theme => Topic started by: unlimit on January 22, 2019, 12:37:23 AM
-
i want to show the published date (as 1 hour ago, one week ago, 26 days ago) in list view ads.please advice me.
-
@unlimit
Check loop-single.php, function to get date in that format is stela_smart_date()
-
<span class="published" title="<?php echo osc_format_date(osc_item_pub_date()); ?>"><?php _e('Published on:', 'stela'); ?> <?php echo stela_smart_date(osc_item_pub_date()); ?></span>
;)
-
Hello please I paste this code on single loop.php and it work fine and I want to paste it in premium loop but the date says Items posted 49 Years AGO please Help.
<span class="published" title="<?php echo osc_format_date(osc_item_pub_date()); ?>"><?php _e('Published on:', 'stela'); ?> <?php echo stela_smart_date(osc_item_pub_date()); ?></span>
-
Refresh browser and clear cash , and be fine :) or use incognito widows in browser :)