Display blog posts from a specific member anywhere on your site. Perfect for member profile sidebars, author pages, or “My Posts” sections.
Basic Usage
[bp-member-blog-list]
This displays posts from the currently logged-in user.
All Attributes
| Attribute | Default | Description |
|---|---|---|
user_id | Current user | User ID to show posts from |
count | 5 | Number of posts to display |
columns | 1 | Grid columns (1-3) |
show_excerpt | yes | Display post excerpts |
show_image | yes | Display featured images |
show_date | yes | Display publish date |
show_author | no | Display author info |
orderby | date | Sort by: date, title, modified |
order | DESC | Sort order: ASC or DESC |
category | (empty) | Filter by category slug |
class | (empty) | Custom CSS class |
Examples
Show Posts from a Specific User
[bp-member-blog-list user_id="5"]
Shows posts from user with ID 5.
Display in a Grid
[bp-member-blog-list user_id="5" count="10" columns="2"]
Shows 10 posts in a 2-column grid.
Filter by Category
[bp-member-blog-list category="tutorials" count="8"]
Shows only posts from the “tutorials” category.
Minimal Display
[bp-member-blog-list show_image="no" show_excerpt="no" count="5"]
Shows just titles and dates in a compact list.
Alphabetical Order
[bp-member-blog-list orderby="title" order="ASC"]
Shows posts alphabetically by title.
Common Use Cases
Member Profile Widget
Add to a sidebar widget on member profiles:
[bp-member-blog-list count="3" show_excerpt="no"]
Author Archive Page
Create a full author archive:
[bp-member-blog-list count="20" columns="3" show_author="yes"]
In Theme Templates
Use in PHP templates:
<?php echo do_shortcode('[bp-member-blog-list user_id="' . bp_displayed_user_id() . '" count="5"]'); ?>
Styling Tips
Target these CSS classes:
/* Container */
.bp-member-blog-list { }
/* Individual post */
.bp-member-blog-item { }
/* Post title */
.bp-member-blog-title { }
/* Post excerpt */
.bp-member-blog-excerpt { }
Related Docs
- Recent Posts Shortcode
- Popular Posts Shortcode
- Shortcodes Overview
