hi,
you can do something like:
echo EM_Events::get(array(‘scope’=>”2012-05-01″, ‘limit’=>0)):
That’ll output the events for the date above. If you add back and forth links and modify this date depending what link you clicked, you can create an event navigation of this type.
Thank you, agelonwl. That seems to require creating a custom events list page. Should this be done with the [events_list] shortcode or is it better to use some other method in this case?
you can do that using template file at templates/events-list.php
using template file – http://wp-events-plugin.com/documentation/using-template-files/
Thanks once again, I appreciate the great support you’re giving. I will look into doing exactly what you suggested.
I ran into two issues trying to implement this while displaying elements grouped by day. To clarify, the intention is to display all the future events within the next seven days on the front page and to have pagination links that would display later events always seven days at a time.
- How to make the $args[‘scope’] look for events within the next 7 days only? I have such a custom scope and several others done according to the instructions, but I get no events when I call for example like this:
$args['scope'] = "today-tomorrow";
echo em_events_list_grouped($args);
The self-made plugin adds the scopes with this calls:
$my_scopes = array(
'today-tomorrow' => 'Today and Tomorrow',
The custom scopes are listed in the plugin settings under Pages > Event List/Archives, so I guess there needs to be a different format for calling them.
- How to create pagination links that work as intended? The template file doesn’t show an example for creating the usual pagination, only the special one that’s used when there’s a search. Are custom rewrite rules necessary? Is there any documentation for em_paginate() or information on in which files this and other functions are declared?