UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

If date post is lower than...

Adam O. · ·
2:42 PM Tuesday, 29 December 2015
High
Hi there,

I've got a question about categories.

I need to check in list of posts, if post is added (published) not later than eg. 3 hours.

For example:

if post publish date < 3 hours {

echo 'This post is new!';
}

and

if post publish date < 24 hours {
echo 'This post is published in last 24 hours!';
}

else { don't show nothing}

So how can I check this and show in post in list view (default.main.php) by adding some short code?

I'll be very grateful for your help with this thread!
Best regards!
Adam
The replies under this section are restricted to logged in users or users with an active subscription with us