Customising the Location search query

Discussion in 'GeoCraft WordPress Theme' started by eljonesey, Jan 25, 2016.

Thread Status:
Not open for further replies.
  1. eljonesey

    eljonesey New Member

    Joined:
    Oct 8, 2014
    Messages:
    11
    Likes Received:
    0
    Hi
    I've looked through the forum and haven't been able to see a solution to this yet.

    I would like to change the search location function to search a custom field that I have added ( geo_areascovered) rather than the address (geo_address - which is one of your custom fields).

    For example - a tow truck company based in starcity but also covers mooncity and spacecity. They would enter their base address in geo_address and then enter all their areas into geo_areascovered. This then shows up on their listing and enables a wider search.

    With an adjusted search parameter a customer would find the business by searching any of the three locations.

    I would assume it is a question of changing the sql query to reflect the different meta_key and meta_value, but I am not good enough with php and mysql to do this with the correct syntax.

    I hope you can help with this.

    Many Thanks

    Lee
     
  2. priya

    priya Guest

    Hello Lee,

    Greetings from InkThemes!

    Please follow the link of screenshot given below.

    http://screenpresso.com/=jjaob

    Hope it will resolve your issue

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  3. eljonesey

    eljonesey New Member

    Joined:
    Oct 8, 2014
    Messages:
    11
    Likes Received:
    0
    Hi

    Absolutely spot on thank you.

    I had the right idea - just the wrong file - would never have found that one ;-)

    Works great now.

    Many Thanks for your help

    Lee
     
  4. priya

    priya Guest

    You're welcome Lee..:)

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
Thread Status:
Not open for further replies.

Share This Page