Date on static page (1 day ago, 2 weeks ago etc)

Posted in: Newspaper
Post count: 5

I use Newspaper theme. I’ve got a problem with „date” on start page. I heve build static page using Visual Composer and I set it as a start page. I arranged start page using block. In wordpress I’ve installed plug „Meks Time Ago” which automatically should change my post date display to “time ago” format like “1 hour ago”, “3 weeks ago”, “2 months ago” etc. However when I use it on my start page, plug doesn’t work properly – in block is a date when static page was created than the date when news item was added.

Post count: 22421

Hello,

Sorry but the plugin is not tested so i cannot say for sure if it will work properly or not. You can however try this method of implementation if you are comfortable editing the theme code: https://forum.tagdiv.com/topic/changing-the-date-to-x-time-ago/

Thanks.

Post count: 5

Hello,
Thanks a lot for your response. I udes your solution and it works properly. But I’ve got one more request for help.
Solution shows dates: 1 day ago, 2 day ago etc. In Polish language this phrase looks akward. It should be in Polish: „wczoraj”(yesterday). Is there any solution which can change phrase „one day ago” for „yesterday”?

Post count: 22421

Hi,

You will need extra modifications for that and unfortunately the theme support cannot offer any such solution. You can change the word ago in that function but in order to replace 1 day ago with yesterday and not all the other ‘days ago’ will require further conditions added to the code and time does not allow is to tackle such tasks. Sorry.

Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.