Events Manager
[resolved] Location search (8 posts)

  1. Beee
    Posted 3 years ago #

    I would like to use this plugin for a website which displays yoga schools.

    I am missing the feature of searching in schools on a given search term, zip code or region.

    I saw this link: http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/ but I'm not sure if it applies to this since the search attributes are already stored without the use of custom attributes.

    I have been searching in the tag forum, but only thing I came up with was this http://wordpress.org/support/topic/plugin-events-manager-event-search-by-location?replies=5 and doesn't seem to fit my 'need'.


  2. Beee
    Posted 3 years ago #

    basicly I would like to create a search option to use for locations. Anyone got any suggestions, because couldn't find anything (so far) in the forums.

  3. agelonwl
    Posted 3 years ago #

    this isn't available at the moment; however if you can code this might be possible by using template file at templates/locations-list.php then replicate what templates/events-list.php is doing;

    if you created a location search form (e.g. replicating events-search.php template) then pass search attribute to EM_Locations::output

    $args['country'] = $_REQUEST['country']

    to use templates – http://wp-events-plugin.com/documentation/using-template-files/


  4. Beee
    Posted 3 years ago #

    I knew it wasn't possible 'out of the box' but I thought it could be created without too much hassle.

    I copied events-search.php and copied it to my template dir and named it location-search.php.

    I include this on http://www.yogaindebuurt.nl/evenementen/locaties/ (only visible page if not logged in)

    but now it of course searches for events.

  5. Beee
    Posted 3 years ago #

    while editing events-search.php I think I found a typo.

    2nd last line
    should be

  6. agelonwl
    Posted 3 years ago #

    you could try to replicate template files events-search.php and events-list.php then rename it to e.g. my-locations-search.php and my-locations-list.php then see php file em-shortcode.php and create your own shortcode which will call your new template files.


  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    for the search, you can see how we do it for events on em-events.php around line 274, you'd need to add your own location search attribute, simlar to what we describe here -

    http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/ (see the alternate method for adding the filter/sql)

    r.e. typo, already noted this, but since it is typoed everywhere it works so will change when time permits.

  8. Beee
    Posted 3 years ago #

    I went 'pro' to see if I can get help there, since it's a 'must' for the site.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic