I am trying to use date_range_start="today"
instead of date_range_start="{segment_3}-{segment_4}-01"
if the user is on the current month displayed. I have this working properly for all other months except the current month. The problem is that events that have already passed are still showing up for the current month. Is there a conditional that I could use to check if it is the current month and then use date_range_start="today"
in that case? Below is the loop that I am using.
{exp:calendar:cal
date_range_start="{segment_3}-{segment_4}-01"
date_range_end="{segment_3}-{segment_4}-last"
show_months="1"
show_future_entries="yes"
dynamic="no"
event_limit="3"
paginate="bottom"
pad_short_weeks="n"}