WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Location search (8 posts)

  1. Beee
    Member
    Posted 1 year 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'.

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

  2. Beee
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

    e.g.
    $args['country'] = $_REQUEST['country']

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

    http://wp-events-plugin.com/documentation/event-search-attributes/

  4. Beee
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

    2nd last line
    dbem_serach_form_submit
    should be
    dbem_search_form_submit

  6. agelonwl
    Member
    Posted 1 year 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.

    http://wp-events-plugin.com/documentation/
    http://wp-events-plugin.com/tutorials/

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic