Skip to content

Future Post Dates on Events do not effect anything #339

Discussion options

You must be logged in to vote

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. 🙂

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kjmartens
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #326 on October 22, 2024 04:31.