WordPress.org

Forums

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

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

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

  2. angelo
    NetWebLogic Support
    Posted 1 year 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"]

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

  3. mkbn
    Member
    Posted 1 year 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. Philip John
    Member
    Posted 1 year ago #

    Hiya,

    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.

    Phil

  5. mkbn
    Member
    Posted 1 year ago #

    which file??

  6. angelo
    NetWebLogic Support
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic