User Social Fields
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, th
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.
- 01Upload user-social-fields to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Place the shortcode where you want the list to appear by using <?php do_shortcode('[userfields]'); ?> in your templates or [userfields] in your post content.
Frequently asked questions.
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.