Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [location-search]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
454 views

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 ...
1
vote
1answer
1k views

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 ...
0
votes
1answer
744 views

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: ...
2
votes
0answers
48 views

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?
1
vote
0answers
295 views

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 ...
0
votes
2answers
206 views

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' =>...
1
vote
2answers
2k views

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 ...
1
vote
1answer
631 views

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 (...
0
votes
1answer
604 views

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 ...
0
votes
1answer
77 views

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, ...
0
votes
0answers
32 views

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 http://www.checkatrade.com/ I will be setting these up through two taxonomies: 1:...
3
votes
1answer
5k views

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....
0
votes
1answer
2k views

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 ...
1
vote
1answer
398 views

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 ...
0
votes
1answer
1k views

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. ...
2
votes
1answer
2k views

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 ...
19
votes
3answers
19k views

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 ...
11
votes
4answers
5k views

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 ...