WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Events Manager] Events Search page not working

[Resolved] [Plugin: Events Manager] Events Search page not working

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcus

    @netweblogic

    have you modified any templates? if you have, try disabling those templates to see if they’re causing the problem, e.g. rename yourtheme/plugins/events-manager to something else so these templates aren’t used and try your search again.

    As you can see, the default search form does work – http://demo.wp-events-plugin.com/events/

    Yes, to add tags on the search list, used the snippet provided at the forum.

    I checked and realized that snippet for events-list.php is causing the problem, but if I remove it then search by tags won’t work. 🙁

    try to replace your tag snippet with this one

    <?php
    $tagselected = !empty($_REQUEST['tag']) ? $_REQUEST['tag'] : 0;
    wp_dropdown_categories(array( 'hide_empty' => 0, 'name' => 'tag', 'hierarchical' => true, 'taxonomy' => EM_TAXONOMY_TAG, 'selected' => $tagselected, 'show_option_none' => 'All Tags', 'class'=>'em-events-search-tag'));
    ?>

    instead of

    <?php
    $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 Tags', 'class'=>'em-events-search-tag'));
    ?>

    then in your events-list.php; add this

    if ( $_REQUEST['tag'] == -1){
               $args['tag'] = '';
            }
    
    below
    
    em_locate_template('templates/events-search.php',true);

    Thanks Agelonwl. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Events Manager] Events Search page not working’ is closed to new replies.