1

Is it possible to override/disregard the postDate for all entries in a section so that they are visible on the frontend even if this date is in the future?

I realise I could add a dedicated date field — but keen to avoid this if possible as the fields for this entry are already quite complicated!

1 Answer 1

1

You can add status(null) in your ElementQuery in order to fetch all items or you add status(['pending', 'enabled']) to pull all entries, that are not disabled and not expired

2
  • That works but when you click to view the actual entry you get a 404 error? Commented Jun 4, 2018 at 15:01
  • You have to either create a custom route or set their postDate to a valid value - because that's the indented way how the postDate works. Do you want to set the postDate for all entries in a section to now? Commented Jun 4, 2018 at 15:10

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.