CP Groups integrates with CP Locations to enable location-based group organization and per-location email routing. When active, groups can be assigned to locations and each location can have its own CC and BCC email settings for contact form submissions.
Prerequisites
Before setting up location-based groups:
- CP Locations plugin is installed and activated
- At least one location is created in CP Locations
- CP Groups is installed, activated, and licensed
How the Integration Works
When CP Locations is active, CP Groups automatically:
- Adds the location taxonomy (
cp_location) to the group post type, so groups can be assigned to locations - Adds group-specific email settings to each location’s edit screen
- Includes location-based CC and BCC addresses in contact form emails
No manual activation is required — the integration loads automatically when CP Locations is detected.
Assigning Groups to Locations
- Open a group in the editor (Groups → All Groups → [Group Name])
- In the Location taxonomy panel (sidebar), check one or more locations
- Click Update
Groups assigned to locations can be filtered by location on the archive page, just like any other taxonomy.
Location Email Settings
Each location can have its own email routing for group contact form submissions:
- Navigate to the location edit screen in CP Locations
- Scroll to the Group Settings metabox
- Configure the following fields:
| Field | Description |
|---|---|
| Group Email CC | Email addresses to CC on contact form submissions for groups at this location (comma-separated) |
| Group Email BCC | Email addresses to BCC on contact form submissions for groups at this location (comma-separated) |
These addresses are combined with the global CC/BCC settings from Advanced Settings and any per-group CC addresses.
Email Routing Summary
When a visitor submits the contact form for a group, the email recipients are compiled from multiple sources:
- To: The group leader’s email address
- CC: Global CC setting + group-specific CC field + location CC field
- BCC: Global BCC setting + location BCC field
Troubleshooting
Location Taxonomy Not Showing
- Verify CP Locations is installed and activated
- Deactivate and reactivate CP Groups to re-trigger the integration
- Check that locations have been created in CP Locations
Location Emails Not Sending
- Verify the CC/BCC fields are filled in on the location edit screen
- Confirm the contact form is working for non-location groups first
- Check that the group is assigned to the correct location
For more help, see the Troubleshooting guide.
