Display today's events
I can indeed but I was wondering if there’s any amendments I can make to the list.php that will only show the days events when a visitor comes to the site as opposed to the current day and all future events.
Exactly how it’s displayed when clicking on the day via the grid view.
Moif – just in case there is any confusion – john is saying that single day view exists and is accessible by clicking on the # on the date in the calendar view.
Alternatively you can use use the date in the url for example: http://yoursite.com/events/2011-10-25/. You could create some kind of smart link using the php date function, something like: date(“Y-m-d”)
Perhaps I’ve misunderstood the ‘Single Day View’.
I am aware there are two views available in the admin page; Calendar and Event List. In Calendar list it’s just that, it will display a calendar and the Event List will list all of the events.
It’s the event list view I am focusing on. Currently it appears that it lists all events from today’s date AND all future events and I am wanting to have it display just the events from today. Tomorrow I’ll visit the page and I’ll just get tomorrows events. So on and so forth.
As an example here is our current schedule: http://www.brap.fm/schedule-3/ and it displays just today and today only. I don’t need to click on a calendar, it’s the default view.
With ECP this is the current view – Event List: http://www.brap.fm/events/ and we can see it’s listing todays AND tomorrows AND any event in the future.
My aim is to have ECP display just today and to remove the previous and next events links at the bottom and the ical button. That bit I can do by editing list.php but it’s the actual default day display I need help with.
Hi Moif. I believe I sent you an email on this earlier today, but just to follow-up….you are correct regarding how the event list operates. It shows today’s events and as many in the future as it can while still conforming to your post limit per page.
Out of the box, single day view just displays all the events on a given day from within the calendar…there’s no standard link for single event view that changes every day to just display that day’s events. However you could likely hack something along those lines together.
Hope that helps! Please let me know if this is confusing or if you have any other questions.
So the number of blog posts in Settings > Reading determines the number of events displayed.
That’s fine for now as we only have 3 events a day and that’s pretty uniform. I’ll have to take a further look though because if I want to have more going on from a day to day basis then this will become something of a deal breaker.