Events List Page Search Filter
-
I am using the Events Manager and WPML Compatibility. The Events List Page Search Filter not working for translated Event List Page. It was previously working. Your help is greatly appreciated.
-
Which version of Events Manager, Events Manager Pro (if applicable), WPML, EM / WPML Compatibility and WordPress are you using?
Thank you for the response.
Events Manager and WPML 1.0.1
Events Manager 5.6.6.1
It’s possible this is a conflict caused by your theme or another plugin. To check if it is, can you test with all other plugins deactivated and while running the default WordPress theme?
If that doesn’t help, can you post a link?
Unfortunately, that is not working. I tried the default theme and the search drop down is not working anymore. If I search on events for UK it takes me back to the US Events Page with no results.
https://www.workforcesoftware.com/uk/newsroom/events-calendar/
Thank you for your help.
Is that page set as your Events page under Events > Settings > Event List/Archives?
The main language (US) page is identified as the Events page under Events > Settings > Event List/Archives: https://www.workforcesoftware.com/newsroom/events/
When you switch language to UK(GB) and choose Tradeshow for example from the drop down menu, the page is redirected to the US Events Page with “News coming soon!” (no results). I installed the Events Manager and WPML and it was working until very recently and I believe there was an update recently at 2 months ago. I look forward to your help.
Which version of WPML are you using?
Are you using any custom code relating to Events Manager or WPML?
Hello,
I am using WPML 3.6.3, WPML is all up to date including related Plugins. I have two templates in /wp-content/themes/my-theme/plugins/events-manager/templates/
events-list.php
$args = apply_filters('em_content_events_args', $args); if ( !empty($_REQUEST['search-tag']) ){ $args['tag'] = $_REQUEST['search-tag']; } $args = apply_filters('em_content_events_args', $args); if( get_option('dbem_css_evlist') ) echo "<div class='css-events-list'>"; echo EM_Events::output( $args ); if( get_option('dbem_css_evlist') ) echo "</div>";
events-search.php
$args = !empty($args) ? $args:array(); /* @var $args array */ ?> <div class="em-search-wrapper"> <div class="em-events-search em-search <?php if( !empty($args['main_classes']) ) echo esc_attr(implode(' ', $args['main_classes'])); ?>"> <form action="<?php echo !empty($args['search_url']) ? esc_url($args['search_url']) : EM_URI; ?>" method="post" class="em-events-search-form em-search-form"> <input type="hidden" name="action" value="<?php echo esc_attr($args['search_action']); ?>" /> <?php if( $args['show_main'] ): //show the 'main' search form ?> <div class="em-search-main"> <?php do_action('em_template_events_search_form_header'); //hook in here to add extra fields, text etc. ?> <?php //search text if( !empty($args['search_term']) ) em_locate_template('templates/search/search.php',true,array('args'=>$args)); if( !empty($args['search_geo']) ) em_locate_template('templates/search/geo.php',true,array('args'=>$args)); ?> <?php if( !empty($args['css']) ) : //show the button here if we're using the default styling, if you still want to use this and use custom CSS, then you have to override our rules ?> <button type="submit" class="em-search-submit loading"> <?php //before you ask, this hack is necessary thanks to stupid IE7 ?> <!--[if IE 7]><span><![endif]--> <img src="<?php echo EM_DIR_URI; ?>includes/images/search-mag.png" /> <!--[if IE 7]></span><![endif]--> </button> <?php endif; ?> </div> <?php endif; ?> <?php if( !empty($args['show_advanced']) ): //show advanced fields, collapesed if the main form is shown, inline if not ?> <div class="em-search-advanced" <?php if( !empty($args['advanced_hidden']) ) echo 'style="display:none"'; ?>> <div style="display: inline;">Filter by:</div> <?php //date range (scope) if( !empty($args['search_scope']) ) em_locate_template('templates/search/scope.php',true,array('args'=>$args)); //categories if( !empty($args['search_categories']) ) em_locate_template('templates/search/categories.php',true,array('args'=>$args)); //tags $selected = !empty($_REQUEST['search-tag']) ? $_REQUEST['search-tag'] : 0; wp_dropdown_categories(array( 'hide_empty' => 0, 'name' => 'search-tag', 'hierarchical' => true, 'taxonomy' => EM_TAXONOMY_TAG, 'selected' => $selected, 'show_option_none' => 'All Regions', 'class'=>'em-events-search-tag')); //Location data em_locate_template('templates/search/location.php',true, array('args'=>$args)); if( !empty($args['search_geo_units']) ) em_locate_template('templates/search/geo-units.php',true, array('args'=>$args)); ?> <?php do_action('em_template_events_search_form_footer'); //hook in here to add extra fields, text etc. ?> <?php if( !$args['show_main'] || empty($args['css']) ): //show button if it wasn't shown further up ?> <input type="submit" value="<?php echo esc_attr($args['search_button']); ?>" class="em-search-submit" /> <?php endif; ?> </div> <?php endif; ?> <?php if( !empty($args['advanced_hidden']) && !empty($args['show_advanced']) ): //show the advanced search toggle if advanced fields are collapsed ?> <div class="em-search-options"> <a href="#" class="em-toggle" rel=".em-search-advanced:.em-search-form"> <span class="hide" style="display:none;"><?php echo esc_html($args['search_text_hide']); ?></span> <span class="show"><?php echo esc_html($args['search_text_show']); ?></span> </a> </div> <?php endif; ?> <?php if( (empty($args['show_advanced']) || empty($args['search_countries'])) && !empty($args['country']) ): //show country in hidden field for geo searching ?> <input type="hidden" name="country" value="<?php echo esc_attr($args['country']) ?>" /> <?php endif; ?> </form> </div> <?php if( !empty($args['ajax']) ): ?> <div class='em-search-ajax'></div> <?php endif; ?> </div>
Does it work if you disable those templates and revert to the default templates?
No, unfortunately it still doesn’t work. Thank you for the help. It is greatly appreciated!
Hello:) I was wondering if there has been any progress on your end regarding this issue? If I purchase the Pro edition of your software, could we resolve the issue? I would be happy to pay for premium support to get a resolution. Your help is greatly appreciated.
Sorry for the delay in getting back to you. Are you using a custom search form?
Hello:) Thank you for getting back with me. Yes I am using the events-search.php as detailed in the above comment along with the event-list.php file. I removed them both and used just the default templates and it didn’t make a difference. The page always returns to the primary language events list page.
I look forward to your reply.
- The topic ‘Events List Page Search Filter’ is closed to new replies.