X
354609

Event list extended : I want to be able to display next weekend's events - do I need this add-on ?

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 ?

BY: Jerome Bart - May 21,2024 AT 5:21AM - 1 year ago
    • Artem May 21,2024 AT 7:53AM - Posted 1 year ago - #354641

      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/

    • Jerome Bart May 22,2024 AT 1:31AM - Posted 1 year ago - #354683

      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 ?

    • infotainerdave May 22,2024 AT 5:59AM - Posted 1 year ago - #354692

      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

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON