EM events list not working in English version Home Page
-
Hi everyone,
I have a multilanguage site (Italian, the main, and English) with an event list in home page:
events list is made through shortcode
[events_list][/events_list]
andfunction display_custom_search( $attr, $content = null ) { $search_args = em_get_search_form_defaults(); em_locate_template('templates/events-search.php', true, array('args'=>$search_args)); $args['limit'] = !empty($args['limit']) ? $args['limit'] : get_option('dbem_events_default_limit'); if( !empty($args['ajax']) ){ echo '<div class="em-search-ajax">'; } //AJAX wrapper open if( get_option('dbem_event_list_groupby') ){ em_locate_template('templates/events-list-grouped.php', true, array('args'=>$args)); }else{ em_locate_template('templates/events-list.php', true, array('args'=>$args)); } if( !empty($args['ajax']) ) echo "</div>"; //AJAX wrapper close /*return '<a href="https://twitter.com/filipstefansson" class="twitter-button">' . $content . '</a>';*/ } add_shortcode('custom_search', 'display_custom_search');
There some link I have to add to make it work in my second home page?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘EM events list not working in English version Home Page’ is closed to new replies.