• Resolved Daedalon

    (@daedalon)


    When the scope of events is set to Future, the events are paginated by the limit set in Pages > Event List/Archives > Default event list options, but the paging is blind towards dates.

    We want to list eg. events for the next 7 days, and have created a scope for that, but there’s no paging option to view the events of the following 7 days, eg. the from the 8th through to 14th day counting from today.

    What’s the best way to create this type of paging by date?

    http://wordpress.org/extend/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter Daedalon

    (@daedalon)

    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/

    Thread Starter Daedalon

    (@daedalon)

    Thanks once again, I appreciate the great support you’re giving. I will look into doing exactly what you suggested.

    Thread Starter Daedalon

    (@daedalon)

    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.

    1. 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.

    2. 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?
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Events Manager] Pagination by date’ is closed to new replies.