Adding Shortcodes to a Page
Place a shortcode
Section titled “Place a shortcode”Add any of the three shortcodes to a post, page, text widget, or a block that accepts shortcodes:
[activity-listing][members-listing][groups-listing]With no attributes, each shortcode uses its defaults (see the Shortcode Reference). Publish or preview the page and the listing renders inline.
Add attributes
Section titled “Add attributes”Attributes go inside the brackets as name="value" pairs:
[activity-listing per_page="5" title="Latest activity"][members-listing type="newest" grid="yes" loop_layout="four"][groups-listing type="popular" per_page="6"]Value formats
Section titled “Value formats”- Boolean-style attributes accept
1/0ortrue/falsedepending on the attribute; check the default in the reference. For example activity usesload_more="1", groups usesshow_hidden="true". - Lists of IDs are comma-separated, for example
include="1,5,10". - Attribute names are lowercase and must match the reference exactly. An unrecognised attribute is ignored.
Which BuddyPress component is required
Section titled “Which BuddyPress component is required”Each shortcode needs its matching BuddyPress component enabled:
| Shortcode | Requires component |
|---|---|
[activity-listing] |
Activity |
[members-listing] |
Extended Profiles (xprofile) |
[groups-listing] |
Groups |
If the component is off, the shortcode shows a short “please enable” notice in place of the listing.
The listing needs the Nouveau template pack
Section titled “The listing needs the Nouveau template pack”All three shortcodes render through the BuddyPress Nouveau templates. If the site runs the legacy template pack and the Nouveau template functions are unavailable, the listing is replaced by an admin-only notice asking you to switch on Nouveau under Settings > BuddyPress > Options. Only administrators see that notice.

