Skip to content

Profile Places Tab

The Places tab shows a member’s GeoDirectory listings on their community profile. It is available for both BuddyPress and PeepSo profiles and is controlled by the Places Tab setting for each platform.

When the Places tab is enabled for BuddyPress, the addon adds a profile tab and renders the displayed member’s listings inside it.

  • Tab label and URL slug are customizable. The tab name comes from the Places Tab Label setting (default Place) and the URL segment comes from the Places Tab Slug setting (default place). See Configure Settings.
  • Visible to all profile visitors. The tab is shown for the displayed user, so anyone viewing that profile sees the member’s listings.
  • Admin bar shortcut. For logged-in members, a matching entry is added under the WordPress “My Account” admin bar menu that links to their own Places tab.
  • Listings come from GeoDirectory. The tab renders GeoDirectory’s [gd_listings] output filtered to the profile owner as author, with pagination enabled.

When only one GeoDirectory post type is registered, the tab keeps a single “My places” view. An “Add” button links to GeoDirectory’s add-listing page, resolved with geodir_add_listing_page_url() so it works with both pretty and plain permalinks.

When more than one GeoDirectory post type is registered (for example places plus events), the addon creates one sub-tab per post type under the parent Places tab. Each sub-tab shows only that post type’s listings and its own “Add” button. You can choose which post types appear as sub-tabs using the Profile Listings CPTs setting; see Configure Settings. Leaving all unchecked shows every registered post type.

When the Places tab is enabled for PeepSo, the addon adds a “Places” tab to the PeepSo profile navigation (with a map-marker icon) and renders the member’s listings from a bundled template.

  • Tab label is customizable through the PeepSo Places Tab Label setting (default My Places).
  • Add button links to GeoDirectory’s add-listing page.
  • Paginated listing. The PeepSo Places listing is bounded and paginated so a profile with many listings does not load them all at once. The page size defaults to 12 and is filterable; see Hooks and Filters.

The listing layout is set by the Places Layout setting and applies to both platforms. Five layouts are available:

Layout key Description
gridview_onehalf Grid view, two columns (default)
gridview_onethird Grid view, three columns
gridview_onefourth Grid view, four columns
gridview_onefifth Grid view, five columns
listview List view

The stored layout is validated against this list. If a site has an invalid value stored, the addon falls back to the two-column grid.