Summary
Business Directory has one listing post type (wpbdp_listing), so mam-business-directory registers a small, fixed set of content surfaces rather than one-per-CPT. Each is a local_app_content registration served by content-classes/local-app-business-directory-class.php.
| Content type | App view | Purpose |
|---|---|---|
BusinessDirectory |
list | The main directory browse list |
BusinessDirectory_Map |
list_map | The same listings on a map |
BusinessDirectory_offdir |
offDirectory | Off-directory / non-directory listings surface |
BusinessDirectory_admin_approvals |
list | The admin moderation queue (pending listings) |
mam-main already whitelists BusinessDirectory as a list type.
How listings are chosen
- Published listings appear to everyone. Pending/draft listings are visible only to the listing’s author and to admins.
- The admin-approval surface (requested with the sentinel category
999999for an admin) returns onlypendingrows — this is the app’s approve-listing queue. - Categories come from the
wpbdp_categorytaxonomy. Pick which categories the app surfaces in App Setup; set a default for new listings on the settings page → Listing tab. A synthetic “My Venues” category groups the current user’s own listings.
Search, sort, and radius
- Listings ship a
searchIndexso the app can do text search (data_has_search_indexflag), and category names are included in search hits (use_category_in_search_results). - Distance sort and radius filtering use the listing’s flat
lat/lonpostmeta with a Haversine calculation. The default radius is overridable per app and via the settings page Radius distance (Miles).
GeoFilters
mam-business-directory contributes distinct city/region rows (with coordinates) to mam_geofilter_list from listing postmeta, so a GeoFilters app can scope the directory to a city or region. See Business Directory integrations.
Related articles
- Plugin: mam-business-directory
- Mobile listing data shape
- Listing tab bar buttons
- Business Directory integrations
Metadata
| Field | Value |
|---|---|
| Article type | Content Type Reference |
| Plugin slug | mam-business-directory |
| Category | App Content |
| Audience | WordPress admin |
