UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible 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 offline
It is currently a public holiday for us from where we are at.

There may be a delay in our responses but rest assured that we will be back at full speed when we are back to the office.
  Support is offline

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