I am using an IP locator to determine the users location. And the city is being held in a variable. I was wondering if it is possible to have a query that searches a specific variable, such as the header search functionality works, however instead of passing through an input field, the search searches the variable that has the users city. Which will be held in the variable I have. Lets call this variable $user_city So is it possible to have a query that searches that variable in the database of contractors like the homepage search functionality works? Ie: I search my city in the header, and it displays results from that city search. I pretty much want to achieve the same thing, however the users city will already be known by the IP locator script I have in place. So in essence, I want to have the homepage search that string to show the users closest listings. Any thoughts, suggestions would be great. I am a little stuck on the theory of the loop-search.php file. Some explanation of that could help me in the right direction as well.