I have a small snippet of code that is designed to display all channel entries on a per-day basis (or at least that’s the goal). Unfortunately, the code below only displays one entry.
What I am trying to do is display a calendar with links applied to days that have event channel entries. That part is works as expected, but when a user clicks the link to view the events for that day, it only shows 1 even if there are multiple entries for that date.
Here’s the code for the link creation in the calendar (working fine):
{if entries}
<td class='{switch}' align='center'>
<a href="http://{day_path=event/index}class=popup">{day_number}</a>
</td>
{/if}
Here’s the code for looping through channel entries of type “events”:
{exp:channel:entries channel="events" dynamic="no" display_by="day" limit="1" show_future_entries="yes" require_entry="yes" orderby="date" sort="asc"}
{entry_date format="%F %j%S, %Y"}: {title}
{event_description}
{/exp:channel:entries}If I change the limit to be greater than 1, I see more entries in that channel. From the documentation, as I understand it, when combined, the parameters display_by=“day” limit=“1” would display all channel entries for one day. In it’s current state, only the first channel entry ever entered displays, no matter what link was clicked in the calendar.
Any ideas?
Thanks for reading.