Mô tả
The User Social Fields plugin will allow users to add their social networking accounts to their user profile. Then, using a shortcode,
a list of the user’s social web site links will appear on the page. The user can be specified or magically set (when viewing a page or single post). Additionally,
the shortcode allows you to choose which social web sites to list and in which order.
Cài đặt
- Upload
user-social-fields
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place the shortcode where you want the list to appear by using
<?php do_shortcode('[userfields]'); ?>
in your templates or[userfields]
in your post content.
Hỏi đáp
- How do I set the user?
-
In the shortcode, add the attribute “user” with a value of either the user’s id or login (example: [userfields user=”johndoe”]).
- How do I specify the user fields?
-
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.
- What if the user has not set their user fields in their profile settings?
-
If the shortcode requests a field that the user has not set, it will not display.
- How do I sort the user fields?
-
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. - Do I have to specify the fields to display?
-
No. If the “fields” attribute is unset, all social fields will display in alphabetical order.
- What fields are available?
-
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)
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“User Social Fields” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “User Social Fields” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.0.1
- Enabled shortcode use in text widgets.
- Allowed uppercase field names.
1.0
- Added Vine and Vimeo fields.