• Hi there, this plugin look like it’s exactly what I’m looking for however I don’t have the technical knowledge to implement this and I was hoping someone could provide me with some guidance?

    I have created a CPT called ‘Live Online’ (slug: ‘live_online’) and I would like to create a listing of events that are happening within the next month, in date order (soonest first). Some events will be recurring and others will be one-off.

    I have installed this plugin which gives me all the fields I but I need some help setting up a query for a listing grid.

    I am using ACF, Elementor Pro and Dynamic.ooo. If there’s a way to set up a query using the Dynamic.ooo listing widget that would be ideal.

    I would also appreciate any pointers on how I can pull the field data into the loop template I have built in the Elementor Theme Builder.

    I appreciate that this may extend beyond your level of support but any guidance would be greatly appreciated.

    Thank you in advance

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter georgeupson

    (@georgeupson)

    In addition to my post above, I am using the Hello Child Theme and I’m comfortable will adding suggested code to my functions.php file where necessary

    Plugin Author Marc Bellêtre

    (@marcbelletre)

    Hi @georgeupson,

    This plugin is only designed to provide a convenient field for managing recurring dates. If you need custom queries based on the field’s value you need to write custom code.

    You can find an example of a custom query here but of course you will have to adapt it to your use case.

    If you only need to show the individual dates for a single post, you can find them using the get_field() function. The RRule field returns an associative array containing a dates_collection attribute. You can then loop through this collection to show all the dates individually.

    <ul>
      <?php
      $rrule = get_field('recurring_dates');
      
      if ($rrule['dates_collection']) {
        foreach ($rrule['dates_collection'] as $date) {
          echo '<li>' . $date->format('Y-m-d') . '</li>';
        }
      }
      ?>
    </ul>

    I never use Elementor and never heard of Dynamic.ooo so I’m afraid I won’t be able to provide much more help here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Event listing for dummies’ is closed to new replies.