Recent Posts Shortcode - Community Feed
Display recent blog posts from all members across your site. Perfect for homepages, community feeds, and “Latest from the Community” sections.
Basic Usage
[bp-member-blog-recent]
This displays the 10 most recent posts from all members.
All Attributes
AttributeDefaultDescriptioncount10Number of posts to displaycolumns3Grid columns (1-4)show_excerptyesDisplay post excerptsshow_imageyesDisplay featured imagesshow_dateyesDisplay publish dateshow_authoryesDisplay author nameshow_avataryesDisplay author avatarcategory(empty)Filter by category slugexclude_users(empty)Comma-separated user IDs to excludeclass(empty)Custom CSS class
Examples
Homepage Feature Section
[bp-member-blog-recent count=“6” columns=“3” show_excerpt=“yes”]
Shows 6 recent posts in a 3-column grid with excerpts.
Category-Specific Feed
[bp-member-blog-recent category=“news” count=“5” columns=“1”]
Shows only posts from the “news” category in a single column.
Exclude Admin Posts
[bp-member-blog-recent exclude_users=“1” count=“12”]
Shows posts from all members except user ID 1 (usually the admin).
Compact Sidebar Widget
[bp-member-blog-recent count=“5” columns=“1” show_excerpt=“no” show_image=“no”]
Compact list showing just titles, authors, and dates.
Full-Width Feed
[bp-member-blog-recent count=“10” columns=“1” show_excerpt=“yes” show_avatar=“yes”]
Traditional blog-style feed with one post per row.
Common Use Cases
Homepage “Latest from Community”
<h2>Latest from Our Community</h2> [bp-member-blog-recent count=“6” columns=“3”]
Category Landing Page
<h1>Tutorial Posts</h1> [bp-member-blog-recent category=“tutorials” count=“12” columns=“3”]
Sidebar Recent Posts
Add to a Text or Custom HTML widget:
<h3>Recent Posts</h3> [bp-member-blog-recent count=“5” columns=“1” show_image=“no” show_excerpt=“no”]
Creating a Community Blog Page
Combine shortcodes for a complete blog page:
<h2>Latest Posts</h2> [bp-member-blog-recent count=“9” columns=“3”]
<h2>Browse by Category</h2> [bp-member-blog-categories style=“grid” count=“8”]
<h2>Our Top Contributors</h2> [bp-member-blog-authors count=“8” columns=“4”]
Styling Tips
Target these CSS classes:
/* Container */ .bp-member-blog-recent { }
/* Grid layout */ .bp-member-blog-grid { }
/* Individual post card */ .bp-member-blog-item { }
/* Author info section */ .bp-member-blog-author { }
/* Avatar */ .bp-member-blog-avatar { }
Related Docs
Popular Posts Shortcode Blog List Shortcode Categories Shortcode

