*

unlimit

  • ***
  • 25 posts
How to Add Published/Created Date to a listning
« 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.

*

MB Themes

Re: How to Add Published/Created Date to a listning
« Reply #1 on: January 22, 2019, 08:55:41 PM »
@unlimit
Check loop-single.php, function to get date in that format is stela_smart_date()
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on January 31, 2019, 08:27:08 AM
*

Dawid

  • ****
  • 149 posts
Re: How to Add Published/Created Date to a listning
« Reply #2 on: January 30, 2019, 10:08:01 PM »
<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>

 ;)

*

oneloveb

  • ****
  • 112 posts
Re: How to Add Published/Created Date to a listning
« Reply #3 on: February 09, 2019, 12:29:25 PM »
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>

*

Dawid

  • ****
  • 149 posts
Re: How to Add Published/Created Date to a listning
« Reply #4 on: February 09, 2019, 12:37:26 PM »
Refresh browser and clear cash , and be fine :) or use incognito widows in browser :)