WHA Docs

Managing Locations

Adding, editing, and removing office locations — importing from Doctor.com, addresses, hours, maps, and provider associations.

Adding a New Location

The preferred method is to import from Doctor.com. In wp-admin, go to Settings → Doctor.com Sync → Locations, find the location, and click "Sync." This pulls in the office name, address, and contact information automatically.

If the location isn't in Doctor.com, or you need to create one manually:

  1. Create the location post — Go to Locations → Add New
  2. Fill in the ACF fields:
    • Address — Street address, city, state, zip. Formatted by the format_address() utility for consistent display.
    • Phone and fax — Phone numbers with formatted display links
    • Hours — ACF repeater field with day/time pairs for each day of the week
    • Map coordinates — Latitude and longitude for the Mapbox marker. These must be set for the location to appear on interactive maps.
  3. Publish — The location gets its own detail page and appears on the location map

Editing a Location

  • Address or hours changes take effect immediately on the location detail page
  • Map coordinates must be updated manually if the physical address changes — they don't auto-geocode
  • Provider associations are managed from the provider side, not the location side. To add a provider to a location, edit the provider and assign the location's taxonomy term.

Location ↔ Provider Relationship

Locations and providers are linked through the wha_providers_locations taxonomy. This is a shared taxonomy — when a provider is assigned to a location term, they appear on that location's detail page, and the location appears on the provider's detail page.

The Doctor.com sync handles these associations automatically when importing. When managing manually, assign the location term to the provider post.

Location Detail Pages

Each location has a detail page showing:

  • Address with a Mapbox interactive map
  • Phone and fax numbers
  • Office hours
  • List of providers who practice at this location (pulled from the taxonomy relationship)

Online Scheduling

Locations can have online scheduling enabled via the wha-appointments plugin. When enabled, a scheduling link appears on the location detail page pointing to the MyHealth patient portal. This is configured per-location in the "Online Scheduling" metabox on the location edit screen.

On this page