Future Post Dates on Events do not effect anything #339
-
Describe the bug or issue you're experiencing Steps to reproduce
Expected behavior
Craft & Plugin Info (please complete the following information):
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sorry for the delay @andypullen, Calendar Events are handled a little bit differently from Craft Entries. However, you can work around this by doing something like this in your template: {% set ignoreFutureDates = date('today')|atom %}
<h3>List of Events</h3>
{% set eventOptions = {
rangeStart: targetStartDate,
rangeEnd: targetEndDate,
postDate: '<' ~ ignoreFutureDates,
limit: 15
} %} I tested this and it seems to work well for me. 🙂 |
Beta Was this translation helpful? Give feedback.
-
I will give this a shot — thanks for the tip and help! |
Beta Was this translation helpful? Give feedback.
Sorry for the delay @andypullen,
Calendar Events are handled a little bit differently from Craft Entries. However, you can work around this by doing something like this in your template:
I tested this and it seems to work well for me. 🙂