Topic: Only today news

Hi.
I wondering how can i show only today news on one page. And yesterday news on another.
I found only $number, but it shows only some numbers of posts. I need only post what was posted today

2 (edited by 2015-11-22 19:10:06)

Re: Only today news

Hi.
I wondering how can i show only today news on one page. And yesterday news on another.
I found only $number, but it shows only some numbers of posts. I need only post what was posted today


Hello astral4ik,

what happens when today no post are posted?

greetings perry

Re: Only today news

Hello astral4ik,

what happens when today no post are posted?

greetings perry

blank page

Re: Only today news

blank page


In your Template:

<article>
<span>{day}</span>
<div>your content</div>
</article>

DOM manipulation with Javascript

in clear text:

if {day} != getDay()

.css('display','none')









Re: Only today news

Why do want use post of today?

Re: Only today news

In your Template:

<article>
<span>{day}</span>
<div>your content</div>
</article>

DOM manipulation with Javascript

in clear text:

if {day} != getDay()

.css('display','none')

can u write an examples, plz. i not for sure where i must use this codes

Re: Only today news

can u write an examples, plz. i not for sure where i must use this codes


I think there have not a only cutenews solution so you must found a way with java script:

http://www.tutorialspoint.com/jquery/jquery-dom.htm