Title: BuddyPress Activity Shortcode
Author: BuddyDev
Published: <strong>2015 年 10 月 15 日</strong>
Last modified: 2025 年 12 月 31 日

---

搜索插件

![](https://ps.w.org/bp-activity-shortcode/assets/banner-772x250.png?rev=1266291)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/bp-activity-shortcode_7ad5e2.svg)

# BuddyPress Activity Shortcode

 作者：[BuddyDev](https://profiles.wordpress.org/buddydev/)

[下载](https://downloads.wordpress.org/plugin/bp-activity-shortcode.1.1.9.zip)

 * [详情](https://cn.wordpress.org/plugins/bp-activity-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/bp-activity-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/bp-activity-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/bp-activity-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/bp-activity-shortcode/)

## 描述

BuddyPress Activity shortcode plugin allows you to insert BuddyPress activity stream
on any page/post using shortcode. It has a lot of flexibility built in the shortcode.

You can customize almost all aspects of the activity list, what should be listed,
how many and everything using the shortcode.

This plugin does not include any css and utilizes your theme’s css for displaying
the activity. If you need any help, please ask on BuddyDev support forums.
 We are
helpful people looking forward to assist you.

Features include:

 * List all activities
 * List activities for a user
 * List activities for a group
 * List activities of specific user role.
 * Allow users to post from the page( experimental, if does not work with your theme,
   please let us know)
 * All options supported by bp_has_activities are available
 * For details, please see [Documentation](https://buddydev.com/plugins/bp-activity-shortcode/)
   
   The simple way to use it is by including this shortcode

[activity-stream ]

Please make sure to check the usage instructions on the [BuddyPress Activity shortcode plugin page](https://buddydev.com/plugins/bp-activity-shortcode/)

Free & paid supports are available via [BuddyDev Support Forum](https://buddydev.com/support/forums/)

## 安装

The plugin is simple to install:

 1. Download `bp-activity-shortcode.zip`
 2. Unzip
 3. Upload `bp-activity-shortcode` directory to your `/wp-content/plugins` directory
 4. Go to the plugin management page and enable the plugin “BuddyPress Activity Shortcode”

Otherwise, Use the Plugin browser, upload it and activate, you are done.

_This plugin, specially the posting functionality, is not compatible with BP Nouveau.

I have checked and it seems we won’t be able to support posting in the Nouveau template.
Listing will work with minor regression.

## 常见问题

### How to Use

Add the shortcode [activity-stream ] in your post or page. For detailed usage instruction,
please visit plugin page on BuddyDev.

## 评价

![](https://secure.gravatar.com/avatar/01ede44e327fa0e01822ff249737551e7a96d09a3cfac855a632d3bba742e04b?
s=60&d=retro&r=g)

### 󠀁[Does exactly what I need!](https://wordpress.org/support/topic/does-exactly-what-i-need-91/)󠁿

 [Neosnc](https://profiles.wordpress.org/neosnc/) 2023 年 12 月 30 日

Works great with lot’s of useful configuration options. Thank you!

![](https://secure.gravatar.com/avatar/a5380413d7ea5052c8f10fc4c2026dd68f488c6a04770d52b4cb04609e422763?
s=60&d=retro&r=g)

### 󠀁[Usefull…](https://wordpress.org/support/topic/usefull-145/)󠁿

 [sielwolf](https://profiles.wordpress.org/sielwolf/) 2020 年 4 月 24 日 1 回复

…and lightweight. Perfect!

![](https://secure.gravatar.com/avatar/35e1a6c676f786e0f0d11e352bda9c4482ec7f96eb71a49031c20030f03a65da?
s=60&d=retro&r=g)

### 󠀁[Only one like it](https://wordpress.org/support/topic/only-one-like-it/)󠁿

 [Stacy (non coder)](https://profiles.wordpress.org/functionmunchkin/) 2018 年 3
月 18 日

Thank you.

![](https://secure.gravatar.com/avatar/60d2f914808eaca5cf642d85d3a4edd1c46920a451583cd4050ab02f60535cf0?
s=60&d=retro&r=g)

### 󠀁[Amazing plugin. Thank you BuddyDev!](https://wordpress.org/support/topic/amazing-plugin-thank-you-buddydev/)󠁿

 [shay1383](https://profiles.wordpress.org/shay1383/) 2018 年 1 月 14 日 1 回复

Simply awesome.

![](https://secure.gravatar.com/avatar/9d79476a34aeaa273501311f76e45335d569e1cd993919f76b54a68240017038?
s=60&d=retro&r=g)

### 󠀁[Thank you for the plugin !](https://wordpress.org/support/topic/thank-you-for-the-plugin-6/)󠁿

 [jcdeckard](https://profiles.wordpress.org/jcdeckard/) 2017 年 6 月 9 日

Thank you for the plugin ! 🙂

![](https://secure.gravatar.com/avatar/05ba6c662f0123954f3953cfbf921c2d98eedf0969babb7a3ab005bc57ecb6e9?
s=60&d=retro&r=g)

### 󠀁[Smooth and effective](https://wordpress.org/support/topic/smooth-and-effective-1/)󠁿

 [Bizstudio](https://profiles.wordpress.org/ajamm/) 2016 年 9 月 3 日

Runs nicely and displays well – needed to use the ‘Post’ feature so had to add the
allow_posting=1 shortcode

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/bp-activity-shortcode/reviews/)

## 贡献者及开发者

「BuddyPress Activity Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ BuddyDev ](https://profiles.wordpress.org/buddydev/)
 *   [ Brajesh Singh ](https://profiles.wordpress.org/sbrajesh/)
 *   [ Ravi Sharma ](https://profiles.wordpress.org/raviousprime/)

[帮助将「BuddyPress Activity Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/bp-activity-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/bp-activity-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/bp-activity-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/bp-activity-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/bp-activity-shortcode/)。

## 更新日志

#### Version 1.1.9

 * Escaped title option in shortcode to avoid any xss concern by contributor or 
   above role. Props Muhammad Yudha.

#### Version 1.1.8

 * Added support to show the activities for private groups if user is a member.

#### Version 1.1.7

 * Fix css class filter

#### Version 1.1.6

 * Added filter for activity css classes
 * Tested with WordPress 5.4

#### Version 1.1.5

 * Fix Pagination/Load more
 * Fix posting to group when there are no activities.

#### Version 1.1.4

 * if object=groups allow_posting=1 and primary id is given, do not show dropdown
   in activity post form.
 * Introduce for_group=group-slug shortcode option. Object must be specified as ‘
   groups’.
 * The follow scope now respects role.

#### Version 1.1.3

 * Added support for load more activities in the current context. Thank you Shay
   for sponsoring it.
 * use load_more=1 for showing the load more button.

#### Version 1.1.2

 * Added support for scope=’following’ when using BuddyPress follow 1.2.x branch
   too. Sponsored by Shay.
 * Also, scope=’following’ can be combined with for =’logged’, or for=’displayed’
   or for=’author’ to display relevant activities.

#### Version 1.1.1

 * Added actions to generate content before/after the actual shortcode. It allows
   developers to add extra messages if needed.

#### Version 1.1.0

 * Added option to filter activity based on roles.
 * Use role=’administrator’ to list all activities of admin. You can use one or 
   more role like role=”administrator,editor”
 * Thank you “Arik Twena” for sponsoring the development.

#### Version 1.0.9

 * Added option to list activity for Logged in user, Displayed user or post author.
 * Use for=”logged” to display activities for logged in user. Other valid values
   are “displayed”, “author”.
 * for=”displayed” lists activities for the displayed user(If you are on user profile
   section).
 * If you use for=”author” in a page/post, It will list activities for the post 
   author on single post/inside the post loop and on author page.

#### Version 1.0.8

 * Introduce option to display the activity shortcode contents even on activities
   page using hide_on_activity=0
 * Introduce container_class option to allow changing the shortcode output container
   class. It defaults to ‘activity’.
    If you have hide_on_activity=0, we suggest
   you to change it to something else to avoid the filtering of the content via 
   js.

#### Version 1.0.7

 * Updated code
 * Tested with BuddyPress 2.7.0

#### Version 1.0.5

 * Updated code
 * Added support for load more when no filters are used

#### Version 1.0.5

 * Initial release on WordPress.org plugin repo

## 额外信息

 *  版本 **1.1.9**
 *  最后更新：**4 月前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.9.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/bp-activity-shortcode/)
 * 标签
 * [buddypress](https://cn.wordpress.org/plugins/tags/buddypress/)[buddypress activity](https://cn.wordpress.org/plugins/tags/buddypress-activity/)
   [sitewide activity](https://cn.wordpress.org/plugins/tags/sitewide-activity/)
 *  [高级视图](https://cn.wordpress.org/plugins/bp-activity-shortcode/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  8 条 5 星评价     ](https://wordpress.org/support/plugin/bp-activity-shortcode/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/bp-activity-shortcode/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/bp-activity-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/bp-activity-shortcode/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/bp-activity-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/bp-activity-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/bp-activity-shortcode/reviews/)

## 贡献者

 *   [ BuddyDev ](https://profiles.wordpress.org/buddydev/)
 *   [ Brajesh Singh ](https://profiles.wordpress.org/sbrajesh/)
 *   [ Ravi Sharma ](https://profiles.wordpress.org/raviousprime/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/bp-activity-shortcode/)