WHA Docs
Content

Managing Locations

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

Adding a new location

Import from Doctor.com whenever you can. 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 fields:
    • Address — Street address, city, state, zip. Formatted by the yax_format_address() helper for consistent display.
    • Contact — A repeater of contact rows (each a type + number), e.g. phone and fax, rendered as formatted display links
    • Hours — a repeater with day/time pairs for each day of the week
  3. Publish. The location gets its own detail page and appears on the location map. The marker geocodes automatically from the address via Mapbox on save — there's no manual latitude/longitude field to fill in.

Editing a location

  • Address or hours changes take effect immediately on the detail page
  • Map coordinates re-geocode automatically from the address on save. No manual step when the physical address changes.
  • Provider associations are managed from the provider side, not here. To add a provider to a location, edit the provider and assign the location's taxonomy term.

Location ↔ provider relationship

Locations and providers link through the wha_providers_locations taxonomy. It's shared: assign a provider to a location term and they appear on that location's detail page, and the location appears on theirs.

The Doctor.com sync handles these associations automatically on import. 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
  • The providers who practice there (pulled from the taxonomy relationship)

Online scheduling

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

On this page