Jump to content

Expiry date field, create a selector to return all articles if they havent expired


Recommended Posts

I have added an expiry field (date) to a template for articles which would need to expire. Some articles would not have an expiry date set, so I need to in theory display articles with a blank date or >today. I am wracking my brains but it is tired today, so I am looking for something along the lines of:

foreach ($page->children("date_1=|>today") as $news)


Link to comment
Share on other sites

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...