0

I have a Super Table field called locationPricing with a date field inside it called expiration. I want to only display the Super Table rows where the expiration date has passed. Here's what I've tried:

{% for price in entry.locationPricing.search('expiration: < ' ~ now|atom).all %}

But that returns no results. Is my search syntax wrong? Should I be using a different format than atom to compare the dates?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.