I'm looking to only return entries that were published in the last 90 days.

1 Answer 1


Within the criteria for the endpoint, set

'postDate' => '>=' . date('Y-m-d', strtotime("-90 days"))

Of course you can adjust the date to suit your needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.