Ready to get started?Download WordPress


Events Manager
[resolved] HELP - Event Search Attributes - Event List from User ACTUAL Location (6 posts)

  1. mkbn
    Posted 10 months ago #

    I need help whether its a hack or not. I don't want the users (viewers not creators) have to search for events by default. It will be better if the events list showed events in there actual current location based off state or city of ip address. Now I have a plugin that displays the user actual location in a text the user can see using a shortcode eg, ""[mmjs-regionname]"" or javascript variable ""mmjsregionname"".

    How can I get that to make events list do the same???? There is an event attribute called state and city but I have to type it in! Come on there has to be a way this is a perfect idea and common to user feedbacks of making it better.


  2. angelo
    NetWebLogic Support
    Posted 10 months ago #

    maybe you can create your own custom search attribute for this one - http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/

    eg. [events_list user_city="NY"]

    user_city = is the new search attribute you created using the list above

  3. mkbn
    Posted 10 months ago #

    but the ="NY" I have to define? Or can the javascript variable define it for me? I do not want to have to type city or state that will mean I need 50 pages.. and 50 links.

    Also what file(s) do I input the codes in link you sent me?

  4. philipjohn
    Posted 10 months ago #


    This is going to take some fairly extensive custom coding for you to achieve.

    You'll need to extract the location information from your shortcode to be used in PHP, and then pass it directly into the search form via hooks or by modifying the search template.


  5. mkbn
    Posted 10 months ago #

    which file??

  6. angelo
    NetWebLogic Support
    Posted 10 months ago #


You must log in to post.

About this Plugin

About this Topic