WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Events Search page not working (5 posts)

  1. vibhorv
    Member
    Posted 1 year ago #

    Search by keyword and search between dates is not working.

    Sample URL: http://goo.gl/Uz79N

    Kindly help me in resolving the issue asap.

    Eagerly waiting for a prompt and positive response.

    Thanks

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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/

  3. vibhorv
    Member
    Posted 1 year ago #

    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. :(

  4. agelonwl
    Member
    Posted 1 year ago #

    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);
  5. vibhorv
    Member
    Posted 1 year ago #

    Thanks Agelonwl. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic