Can't display expired entries
I can't seem to get my expired entries to display.
Any thoughts?
Here is the code I am using:
{exp:low_events:entries channel="events" limit="1" disable="member_data|trackbacks|category_fields|pagination" show_future_entries="yes" show_expired="yes" unit="day"}
{title}
{events:start_date format="%j"} {events:start_date format="%F"} {events:start_date format="%Y"}, {events:start_time format="%g:%i %a"}
{event_title}
{event_summary}
{/exp:low_events:entries}
Replies
Low 8 Feb 2013 08:08
Don't confuse the native show_future_entries="" and show_expired="" parameters with Low Event's parameters show_upcoming="" and show_passed="".
The former deal with the native entry date, the latter deal with the start/end dates set in the Low Events field.
Niall Thompson 8 Feb 2013 22:14
Thanks. I have corrected the code to the following and it still doesn't show past results:
{exp:low_events:entries channel="events" limit="1" disable="member_data|trackbacks|category_fields|pagination" show_upcoming="yes" show_passed="yes" unit="day"}
{title}
{events:start_date format="%j"} {events:start_date format="%F"} {events:start_date format="%Y"}, {events:start_time format="%g:%i %a"}
{event_title}
{event_summary}
{/exp:low_events:entries}
Low 8 Feb 2013 22:27
You're setting unit="day" and limit="1" and you're not defining the date="" param, which means you're only showing a single event that happens today.
What kind of list are you trying to generate with the tag?
Niall Thompson 9 Feb 2013 00:26
I see. Sounds like i'm getting it very wrong.
I have a channel (events) and I wish to list the latest event (one entry) always whether it has passed or whether it is upcoming. Is that confusing matters?
Niall Thompson 9 Feb 2013 00:37
These parameters are giving me the results I need.
{exp:low_events:entries channel="events" unit="custom" date_from="-1 year" date_to="+1 year" show_passed="yes" limit="1" orderby="low_events:end"}
Thanks