• Hi there,

    While trying to use the em_get_events_list_grouped function in one of my theme templates, I was having an issue where no events would display when I set the set the ajax parameter to true. Sample code:

    
    $args = [
        'scope' => 'past',
        'limit' => 3,
        'pagination' => 1,
        'ajax' => 1
    ];
    
    echo em_events_list_grouped( $args );
    

    Digging into the wp-content/plugins/events-manager/em-template-tags.php file, I see that the em_get_events_list_grouped function is referencing a template file that does not seem to exist:

    
    # Line 117 of wp-content/plugins/events-manager/em-template-tags.php
    em_locate_template('templates/events-grouped.php', true, array('args'=>$args));
    

    There is a template file named events-list-grouped.php, and when I adjust my code to point to that file, the function seems to be have as I would expect:

    
    em_locate_template('templates/events-list-grouped.php', true, array('args'=>$args));
    

    For reference, I am using Version 5.9.6 of the plugin.

    • This topic was modified 5 years, 3 months ago by gabeconnolly.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘em_get_events_list_grouped references template that does not exist’ is closed to new replies.