Display member blog content anywhere on your site using shortcodes. Add them to pages, posts, widgets, or theme templates.
Available Shortcodes
| Shortcode | Purpose |
|---|---|
| [bp-member-blog-form] | Post creation form |
| [bp-member-blog] | Member blog dashboard |
| [bp-member-blog-list] | List posts from a specific member |
| [bp-member-blog-recent] | Recent posts from all members |
| [bp-member-blog-popular] | Most viewed posts |
| [bp-member-blog-categories] | Category display |
| [bp-member-blog-authors] | Top contributors showcase |
Post Submission Form
[bp-member-blog-form]
Displays the post creation form where members write and submit new posts.
Use Case: Place on a dedicated “Submit Article” or “Create Post” page.
Requirements:
- User must be logged in
- User’s role must be in allowed roles
- User’s member type must be allowed (if configured)
Member Blog List
[bp-member-blog-list]
Displays posts from a specific member.
Attributes
| Attribute | Default | Description |
|---|---|---|
| user_id | Current user | User ID to show posts from |
| count | 5 | Number of posts |
| columns | 1 | Grid columns (1-3) |
| show_excerpt | yes | Display post excerpts |
| show_image | yes | Display featured images |
| show_date | yes | Display publish date |
| category | (empty) | Filter by category slug |
Examples
[bp-member-blog-list user_id="5" count="10" columns="2"]
Shows 10 posts from user ID 5 in a 2-column grid.
Recent Posts
[bp-member-blog-recent]
Displays recent posts from all members across your site.
Attributes
| Attribute | Default | Description |
|---|---|---|
| count | 10 | Number of posts |
| columns | 3 | Grid columns (1-4) |
| show_author | yes | Display author name |
| show_avatar | yes | Display author avatar |
| category | (empty) | Filter by category |
| exclude_users | (empty) | User IDs to exclude |
Examples
[bp-member-blog-recent count="6" columns="3" show_excerpt="yes"]
Homepage feature showing 6 recent posts in 3 columns.
Popular Posts
[bp-member-blog-popular]
Displays most viewed posts from your members.
Attributes
| Attribute | Default | Description |
|---|---|---|
| count | 10 | Number of posts |
| show_views | yes | Display view count |
| timeframe | all | all, week, month, year |
| category | (empty) | Filter by category |
Examples
[bp-member-blog-popular timeframe="month" count="5"]
Shows top 5 posts from this month.
Categories Display
[bp-member-blog-categories]
Displays blog categories in various formats.
Attributes
| Attribute | Default | Description |
|---|---|---|
| style | cloud | cloud, list, or grid |
| count | 20 | Categories to show |
| show_count | yes | Display post counts |
| hide_empty | yes | Hide empty categories |
Top Authors
[bp-member-blog-authors]
Showcases your most active member contributors.
Attributes
| Attribute | Default | Description |
|---|---|---|
| count | 10 | Number of authors |
| columns | 4 | Grid columns |
| show_avatar | yes | Display avatar |
| show_count | yes | Display post count |
| avatar_size | 80 | Avatar size in pixels |
Using Shortcodes in Widgets
- Go to Appearance → Widgets
- Add a Text or Custom HTML widget
- Paste your shortcode
- Save the widget
Using in Theme Templates
<?php echo do_shortcode('[bp-member-blog-recent count="5"]'); ?>
Combining Shortcodes
Create a complete blog page by combining shortcodes:
<h2>Popular This Month</h2>
[bp-member-blog-popular timeframe="month" count="3" columns="3"]
<h2>Latest Posts</h2>
[bp-member-blog-recent count="9" columns="3"]
<h2>Top Contributors</h2>
[bp-member-blog-authors count="8" columns="4"]
