Jump to content

Recommended Posts

Posted

Hi there.

    It might be a simple question but I don't know where to start, how can I get pages modified|created after certain date and time?

Thanks.

Posted

Clarify...

Today (your title) or certain date and time?

Modified or Created? Those two are different things :-)

...hehe...I thought Soma is on to Something!

  • Like 1
Posted

I think this is what you are looking for:

$datetime = strtotime("2014-03-01");

$sp = $pages->find("modified>$datetime");

foreach($sp as $p){
    echo "<p>{$p->title}</p>";
}

Just swap out modified for created if that's what you want.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...