Support » Plugin: Events Manager » Clicking small calendar’s cells with more than one event

  • It’s my second site using EM and in both of them I encounter a problem I cannot resolve.
    It’s the small calendar, when you click a cell of the calendar and that is a day with only one event all is good. It takes you to that single events page. But when there is more than one event that day I think it should give you a list of events happening that day, but instead i get the full event list.
    Even if in the url I see : http://example.com/events-page/YYYY-MM-DD where YYYY-MM-DD is the date I clicked in the calendar.
    Any idea how to solve that?

    It is theme related (in TwentyFifteen works fine), but i don’t know what could I do to mess it up and in which template.

    latest EM and latest WP

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

Viewing 1 replies (of 1 total)
  • Thread Starter marcosdipaolo

    (@marcosdipaolo)

    **SOLVED** (….kinda)
    I was using EM_Events::output($args) in my own template (page.events.php) but I realized $args = apply_filters('em_content_events_args', $args) returns NULL unless in themefolder/plugins/events-manager/templates/events-list.php
    So if I click a day cell in the small calendar with more than one even it tries to build a list of that date’s events but it can’t since $args is NULL so it doesn’t have the property ["calendar_day"]=> string(10) "2018-05-05"
    What i did is just using the loop in the assigned events page and in events_list.php (where $args = apply_filters('em_content_events_args', $args) works) i added $args += ['groupby' => 'recurrence_id']; then i have both things that i wanted, being able to see events of clicked small calendar’s date cell and see the events grouped by recurrence_id .
    I don’t think a plugin consumed more of my time than this one. I think there’s not enough documentation to really help people with this very complex plugin, unless you are a php genius.
    Any appreciation about my solution and observations would be really appreciated.

Viewing 1 replies (of 1 total)
  • The topic ‘Clicking small calendar’s cells with more than one event’ is closed to new replies.