To use this plugin - your theme (or child theme) must support it.
To display additional profiles for user you just need to use native WordPress function
the_author_meta( 'profile-name' )
where 'profile name' can be 'twitter', 'facebook', 'googleplus', 'instagram', 'pinterest'.
Code example (with Font Awesome Icons):
`<?php
$prefix_twitter_url = get_the_author_meta( 'twitter' );
$prefix_facebook_url = get_the_author_meta( 'facebook' );
$prefix_googleplus_url = get_the_author_meta( 'googleplus' );
$prefix_instagram_url = get_the_author_meta( 'instagram' );
$prefix_pinterest_url = get_the_author_meta( 'pinterest' );
?>
<a href="<?php the_author_meta( 'twitter' ) ?>">
<a href="<?php the_author_meta( 'facebook' ) ?>">
<a href="<?php the_author_meta( 'googleplus' ) ?>">
<a href="<?php the_author_meta( 'instagram' ) ?>">
<a href="<?php the_author_meta( 'pinterest' ) ?>">`
You can see it in action here:
https://pencil1.blogonyourown.com/author/robertsummer/
- Upload
user-social-profiles.php
to the /wp-content/plugins/
directory
- 通过WordPress的的“Plugins”菜单激活插件
- Place in your template:
`<?php if ( class_exists( 'UserSocialProfiles' ) ) : ?>
<a href="<?php the_author_meta( 'twitter' ) ?>">
<a href="<?php the_author_meta( 'facebook' ) ?>">
<a href="<?php the_author_meta( 'googleplus' ) ?>">
<a href="<?php the_author_meta( 'instagram' ) ?>">
<a href="<?php the_author_meta( 'pinterest' ) ?>">
`