Shortcodes and Block
Shortcodes
Section titled “Shortcodes”[bp_quotes]
Section titled “[bp_quotes]”Shows one posted quote by its activity ID.
[bp_quotes activity_id="665"]| Attribute | Default | Description |
|---|---|---|
activity_id |
none | The ID of the activity post that holds the quote |
If the activity is not a quote, the shortcode shows “This is not a quote activity.” Hidden or spam activities show only to site administrators and moderators.
To find an activity ID, open the activity’s permalink. The number at the end of the address is the ID.
[bp_quotes_leaderboard]
Section titled “[bp_quotes_leaderboard]”Shows a ranked list of members by quote count.
[bp_quotes_leaderboard period="week" count="10"]| Attribute | Default | Options | Description |
|---|---|---|---|
period |
week |
week, month, all |
Last 7 days, last 30 days, or all time |
scope |
site |
site, group |
Whole site or one group |
group_id |
0 |
A group ID | Used when scope="group". A private or hidden group’s board shows only to its members and site moderators |
count |
10 |
1 to 100 | Members shown |
show_avatar |
true |
true, false |
Show avatars |
You can use it more than once on a page with different settings. See Leaderboard and Stats for more.
The BuddyPress Quote Block
Section titled “The BuddyPress Quote Block”The BuddyPress Quote block shows a styled quote in any post or page.
- Edit a post or page in the block editor.
- Click the + inserter and search for “BuddyPress Quote”.
- Type your quote in the block.
- Use the sidebar to choose a style.
| Setting | Panel | Description |
|---|---|---|
| Preset | Quote Style | Applies a preset’s background and text color. “None” uses the colors below. |
| Background image URL (optional) | Quote Style | Leave empty to use the background color |
| Font | Quote Style | One of the fonts offered in General - Typography, or Theme default |
| Alignment | Quote Style | Left, Center or Right |
| Background color and Text color | Colors | Used when no preset is chosen |
The block also supports wide and full alignment, an HTML anchor, and margin and padding.
An empty block shows nothing to visitors. The block shows the current look of your presets, so editing a preset updates every block that uses it.
The block wrapper has the class wp-block-bpquotes-quote if you want to add your own CSS.

