[wordpress插件] BP XProfile ShortcodeBP XProfile简码

wordpress 插件 文章 2020-03-11 00:30 476 0 全屏看文

AI助手支持GPT4.0

评分
60
描述

Adds Shortcode for BuddyPress XProfile data

为BuddyPress XProfile数据添加简码

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

为便于快速参考,下面是示例短代码列表:

Reference field by ID in case name changes:

案例名称更改时按ID引用的字段:

[xprofile field=12]

[xprofile字段= 12]

Output city using default user detection (currently displayed BP profile, fallback to author of current page/post, fallback to currently logged in user):

使用默认用户检测输出城市(当前显示的BP配置文件,后退到当前页面/帖子的作者,后退到当前登录的用户):

[xprofile field=”City”]

[xprofile字段=“城市”]

Output city for a specific user by ID or username:

通过ID或用户名为特定用户输出城市:

[xprofile field=”City” user=20]

[xprofile字段=“城市”用户= 20]

[xprofile field=”City” user=”someusername”]

[xprofile字段=“城市”用户=“某用户名”]

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]

[xprofile字段=“城市”用户=当前]

Output city for the author of the current page/post being viewed:

正在查看的当前页面/帖子作者的输出城市:

[xprofile field=”City” user=author]

[xprofile字段=“城市”用户=作者]

Output city for the currently displayed BuddyPress profile:

当前显示的BuddyPress配置文件的输出城市:

[xprofile field=”City” user=displayed]

[显示的xprofile字段=“城市”用户]

Learn more about BP XProfile Shortcode

了解有关BP XProfile简码的更多信息

安装步骤

Install and activate, there are no settings in the UI

安装并激活,UI中没有设置

Documentation of shortcode available at http://tylerdigital.com/products/bp-xprofile-shortcode-plugin/

简短代码的文档可在http://tylerdigital.com/products/bp-xprofile-shortcode-plugin/ 获得

下载地址
https://downloads.wordpress.org/plugin/bp-xprofile-shortcode.1.0.1.zip
-EOF-

AI助手支持GPT4.0