Title: BP XProfile Shortcode
Author: TylerDigital
Published: <strong>2013 年 9 月 22 日</strong>
Last modified: 2015 年 4 月 25 日

---

搜索插件

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

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

![](https://ps.w.org/bp-xprofile-shortcode/assets/icon-256x256.png?rev=970162)

# BP XProfile Shortcode

 作者：[TylerDigital](https://profiles.wordpress.org/tylerdigital/)

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

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

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

## 描述

Adds Shortcode for BuddyPress XProfile data

For quick reference, here is a list of example shortcodes:

Reference field by ID in case name changes:
 **[xprofile field=12]**

Output city using default user detection (currently displayed BP profile, fallback
to author of current page/post, fallback to currently logged in user):
 **[xprofile
field=”City”]**

Output city for a specific user by ID or username:
 **[xprofile field=”City” user
=20]** **[xprofile field=”City” user=”someusername”]**

Override the default user detection by specifying method:
 Output city for the currently
logged in user (blank if no user is logged in): **[xprofile field=”City” user=current]**

Output city for the author of the current page/post being viewed:
 **[xprofile field
=”City” user=author]**

Output city for the currently displayed BuddyPress profile:
 **[xprofile field=”
City” user=displayed]**

[Learn more about BP XProfile Shortcode](http://tylerdigital.com/products/bp-xprofile-shortcode-plugin/)

## 安装

Install and activate, there are no settings in the UI
 Documentation of shortcode
available at http://tylerdigital.com/products/bp-xprofile-shortcode-plugin/

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ TylerDigital ](https://profiles.wordpress.org/tylerdigital/)
 *   [ NSquared ](https://profiles.wordpress.org/croixhaug/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### v1.0.1

 * Fix fatal error from deprecated function in WP 3.6.0

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**11 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/bp-xprofile-shortcode/)
 * 标签
 * [buddypress](https://cn.wordpress.org/plugins/tags/buddypress/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [user meta](https://cn.wordpress.org/plugins/tags/user-meta/)[users](https://cn.wordpress.org/plugins/tags/users/)
   [xprofile](https://cn.wordpress.org/plugins/tags/xprofile/)
 *  [高级视图](https://cn.wordpress.org/plugins/bp-xprofile-shortcode/advanced/)

## 评级

 3 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ TylerDigital ](https://profiles.wordpress.org/tylerdigital/)
 *   [ NSquared ](https://profiles.wordpress.org/croixhaug/)

## 支持

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

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