Merry Xmas guys!
I’m looking for guidance on how to display related businesses on a single business listing page based on category and location proximity.
Use case:
I have a custom post type for businesses.
Each business:
– Is assigned one or more category taxonomies
Is required to fill in:
– Full address
– City & State
What I want to achieve:
On a business listing page, I’d like to show other businesses that:
– Share the same category (or at least one of the same categories), and
Are located within a 100-mile radius of:
– Either the full address, or
– The City & State of the current business being viewed.
Goal:
Create a “Related Businesses Near You” section that is both category-relevant and location-aware.
©2025 Created with 27collective LLC. All rights reserved