Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

em_get_events_list_grouped references template that does not exist

$
0
0

Replies: 0

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.


Viewing all articles
Browse latest Browse all 59525

Trending Articles