Hi Oscar,
How did you try the paginateby and groupby arguments, because they should work. How are you showing the events on the events page? Did you use the setting in Theater → Settings or did you use the shortcode?
Hi Jeroen,
I’m using this shortcode on my page:
[wpt_events paginateby="category,month"]{{thumbnail|permalink}} {{categories}} {{title|permalink}} {{remark}} {{datetime|date(l j F Y - H:i \u\u\r)}}<b>Locatie: {{location}}</b>{{tickets}}[/wpt_events]
I see. There is no option to display a ‘read more’ link.
Another approach could be to automatically jump to the page of the first month.
You can achieve this by adding the following code snippet to the functions.php of your website:
function veurs_set_default_month() {
global $wp_query;
global $wp_theatre;
if (
is_page($wp_theatre->listing_page->page()->ID) &&
empty($wp_query->query_vars['wpt_month']) &&
empty($wp_query->query_vars['wpt_day']) &&
empty($wp_query->query_vars['wpt_category'])
) {
$months_args = array(
'start' => 'now',
);
$months = $wp_theatre->events->get_months($months_args);
if (!empty($months)) {
$months_keys = array_keys($months);
$wp_query->query_vars['wpt_month'] = $months_keys[0];
}
}
}
add_action( 'wp', 'veurs_set_default_month' );
Please make a backup before adding this code.
Thanks! That does the trick!