For my website, I need to be able to offer a list of upcoming weekend events. I already have the Eventon plugin, daily and weekly view. Do I need to buy https://www.myeventon.com/addons/event-lists-extended/ to achieve what I want ? Or is it possible another way ?
May 21,2024 AT 5:21AM - 1 year ago -Hello,
With WeeklyView you can just show the whole week and customers will be able to select any event they like.
With Event Lists: Ext you can try using “Select Event List Type: Date Range” and then select any number of days to show events you need:
Try on https://dev.myeventon.com/wp-admin/
Hi,
Thank you for your answer.
I want to use a shortcode like this :
function eventon_next_weekend_shortcode() {
// Calculate the dates for the next weekend
$next_friday = strtotime(‘next friday’);
$next_sunday = strtotime(‘next sunday’);
// Convert dates to ‘Y-m-d’ format for the shortcode
$start_date = date(‘Y-m-d’, $next_friday);
$end_date = date(‘Y-m-d’, $next_sunday);
// Generate the EventOn shortcode with the dates of the next weekend
$shortcode = ‘[add_eventon_list number_of_months=”1″ hide_past=”yes” start_range=”‘.$start_date.'” end_range=”‘.$end_date.'”]’;
// Execute the shortcode and return the content
return do_shortcode($shortcode);
}
// Define the WordPress shortcode
add_shortcode(‘next_weekend_events’, ‘eventon_next_weekend_shortcode’);
I can’t test it on your demo site, but do you think it will work ?
SEE VIDEO BELOW for a possible way of showing the weekend events only with the weekly view
without having to stuff around with codes
you could also simply hide that top section of weekly view with css (the day boxes) and simply display an events list with those events