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

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

  • That works but when you click to view the actual entry you get a 404 error? – James Greig Jun 4 '18 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? – Robin Schambach Jun 4 '18 at 15:10

Your Answer

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

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