开发者 | aliasbdi |
---|---|
更新时间 | 2014年9月18日 00:31 |
捐献地址: | 去捐款 |
PHP版本: | 3.0.1 及以上 |
WordPress版本: | 4.0 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
user-social-fields
to the /wp-content/plugins/
directory<?php do_shortcode('[userfields]'); ?>
in your templates or [userfields]
in your post content.In the shortcode, add the attribute "user" with a value of either the user's id or login (example: [userfields user="johndoe"]).
To specify the user fields to display, use the attribute "fields" in the shortcode with no spaces and separate them by commas. For exmaple, [userfields fields="facebook,gplus"] will only display Facebook and Google Plus.
If the shortcode requests a field that the user has not set, it will not display.
In the shortcode, you can specify which fields to display. In doing so, the fields will be listed in the same order you specifiy them. For example, [userfields fields="youtube,gplus,facebook"] will list the fields in this order: YouTube, Google Plus, Facebook.
No. If the "fields" attribute is unset, all social fields will display in alphabetical order.
The following fields are avialable to display (and their field strings are in parenthesis): Facebook (facebook), Flickr (flickr), Google+ (gplus), Instagram (instagram), LinkedIn (linkedin), Pinterst (pinterest), Tumbler (tumbler), Twitter (twitter), Vimeo (vimeo), Vine (vine), YouTube (youtube)