Questions tagged [location-search]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers

Place Footer at bottom of page with short text

I have tried various solutions and end up using page specific css to place the footer at the bottom of a page with little text: .site-footer { position: fixed; bottom: 0; left: 0; right: 0; } I am ...
Bernard's user avatar
0 votes
1 answer

Maps search box autocomplete with callback JS function?

I am struggling with using a callback for my Google Maps API. I am trying to have a Goolge Maps autocomplete search box and collect the Lat and Long for the searched location. I've found this answer ...
RobbTe's user avatar
  • 230
0 votes
0 answers

search form for custom fields

I want to create a custom search for pin code search with custom fields value. When exact match with pin code will show the post data Can you please help me? Any help in this matter would be ...
Arindam Bhowmick's user avatar
0 votes
0 answers

How to sort store location by specific category order in WP store locations

i want show if store has specific category then should be show in first and then order by distance add_filter( 'wpsl_sql', 'custom_sql' ); function custom_sql() { global $wpdb, $wpsl_settings,$...
Vaishali Jasoliya's user avatar
0 votes
0 answers

Wordpress Query for CPT that only shows posts within radius of current user's geolocation

I have a CPT called medical_providers. Each medical provider has two ACF meta_fields (latitude and longitude). I want to write a wp_query to only show medical providers that are within a certain range ...
CLD's user avatar
  • 1
1 vote
2 answers

Where does WordPress store plugin (enabled/disabled) status for multisite?

A recent update to one of the plugins I use broke my multisite blog and in the process of debugging it, all of the plugins got disabled. Now I have to try to figure out which plugins used to be ...
Synetech's user avatar
  • 311
0 votes
0 answers

Generate a radius search of custom post type locations

Alright so I've been searching for days and driving myself crazy looking for a solution. I want to create a search function that will allow the user to search for the companies locations that are ...
Chris's user avatar
  • 21
1 vote
1 answer

Wordpress pagination not working with search page

In my search page, My query returns 11 pages with this search: ?q=2&s=chem But when I try to access another page other than the first, like ?q=2&s=chem&paged=2 for example, WordPress ...
hasan movahed's user avatar
-1 votes
1 answer

Allow user to select location and then set cookie for location in WordPress

I am needing to allow a user to select a location from a dropdown on the front-end, that then sets a session cookie for that chosen location... any help here? Ok so this is the outlined task: ...
Jessica Hawkins's user avatar
2 votes
0 answers

Custom Post for Locating by Google Maps API

How do I set up a custom post so that it can be proximity geolocated with Google Maps API?
Tracy's user avatar
  • 125
1 vote
0 answers

multi-vender wooCommerce ability to separate products based on zip code [closed]

I have a multi-vendor WooCommerce equipment rental website where venders from multiple locations are able to offer their equipment for rent in their area. Currently I have all the products in the ...
VitWorks's user avatar
0 votes
2 answers

Add filter post_where and passing post_type argument

Following this tutorial, I want to search for posts within the radius where the post_type=profile add_filter('posts_where', 'location_posts_where', 10); $query = new WP_Query( array( 'post_type' =>...
input's user avatar
  • 263
1 vote
2 answers

Post queries by latitude and longitude

I am struggling with getting post queries by coordinates. I have meta fields map_lat and map_lng for almost all post types. I am trying to return posts from one custom post type ("beaches" in this ...
Rafal's user avatar
  • 312
1 vote
1 answer

Location-Based Content

I am building a site that has pages that have a contact pod that has 11 different dropdowns in wp-admin via Advanced Custom Fields. Based on the user's IP, I want to display one of those 10 contacts (...
Keefer's user avatar
  • 316
0 votes
1 answer

Generating a radius search on postmeta-metavalue and adding a taxonomy to query

This is an old SQL statement found on here from way back in 2011, but its the closet to doing what I need I could find and work on. Although it does exactly what I need, displays properties within a ...
Malisa's user avatar
  • 589
0 votes
1 answer

Searching post types

Is it possible to take a user input from a search form, use that to search a custom post type via the WP_Query class and then redirect the user to a page template to display the results? For example, ...
TheWebs's user avatar
  • 1,085
0 votes
0 answers

Help with WordPress search

i am creating a directory using WP, and need to allow customers to be able to search by industry and sector, like here I will be setting these up through two taxonomies: 1:...
Adam Collins's user avatar
3 votes
1 answer

I have geocoded posts with latitude longitude - How to search by radius?

I have posts which are geocoded with latitude and longitude from Google. I basically can enter an address in a post custom field and the latitude and longitude are placed into two separate meta fields....
Anagio's user avatar
  • 953
0 votes
1 answer

Adding session variable and/or cookie based on user-selected input

I am working on a classifieds website that has a custom taxonomy called 'countries'. In the main header menu I have these categories showing in a dropdown list of particular countries people can ...
Dwayne Charrington's user avatar
1 vote
1 answer

Location-Based Pages displaying results near customer

I'm creating a website where the customer will enter their postal code and the pages (with a distance selected of 5, 10, 20 miles) will display on either a Google map or Bing map. The page results ...
Brett Rush's user avatar
0 votes
1 answer

Dynamic User State & City selection

I need to implement a state-city selection for my users to choose from. Where they first choose their state and then there is a city drop down field that shows only the cities in that state. ...
user1893's user avatar
  • 349
2 votes
1 answer

Create multiple Search functions for posts / custom post types and everything

I'm currently working on a search function in a wp site. The plan is to have a search function on the news page which just searches posts. I'm achieving this by adding the below to my functions.php ...
tbwcf's user avatar
  • 159
21 votes
3 answers

How can I implement a location based (zip code) search in WordPress?

I am working on a local business directory site that will use custom post types for the business entries. One of the fields will be "Zip Code." How can I set up a location based search? I'd like ...
matt's user avatar
  • 1,642
11 votes
4 answers

Optimizing a Proximity-based Store Location Search on a Shared Web Host?

I've got a project where I need to build a store locator for a client. I'm using a custom post type "restaurant-location" and I have written the code to geocode the addresses stored in postmeta ...
MikeSchinkel's user avatar
  • 37.4k