Support » Plugin: Events Manager » [Plugin: Events Manager] Option to search by GET instead of POST

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


    You’d have to implement that one yourself, not something I’d want to change anytime soon.

    you could probably do this by editing the search form and events-list.php template.

    Thanks for the tip, it’s now done. All that was required was to copy plugins/events-manager/templates/templates/events-search.php to themes/mytheme/plugins/events-manager/templates/events-search.php and change line 22 from <form action="<?php echo EM_URI; ?>" method="post" class="em-events-search-form"> to <form action="<?php echo EM_URI; ?>" method="get" class="em-events-search-form">.

    Still to do is to find a way to hide the last part of the now-generated URL, “&action=search_events”, as redundant. Removing from events-search.php the line 136, `
    <input type=”hidden” name=”action” value=”search_events” />`, and changing events-list.php line 22 from
    if(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'search_events'){
    to eg.
    wasn’t enough, and only resulted in displaying the usual events list instead of what was chosen in the search form.

    After doing a similar change to em-events.php and em-actions.php, it works as intended. However, neither of those are under the templates folder, making them not safe for updates.

    What’s the most update-safe way to override the behavior in em-events.php and em-actions.php?

    Plugin Author Marcus


    You should be using hooks to override anything in those files.

    Thanks, will do!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Events Manager] Option to search by GET instead of POST’ is closed to new replies.