Plugin adds social fields to user profile in admin panel (Dashboard > Users).
評分
最近更新:
December 11, 2018
版本
0.1.5
活躍安裝總數
400

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' ); ?> <?php if ( ! empty( $prefix_twitter_url ) ) : ?><a href="<?php the_author_meta( 'twitter' ) ?>"><span class="fa fa-twitter"></span></a><?php endif; ?> <?php if ( ! empty( $prefix_facebook_url ) ) : ?><a href="<?php the_author_meta( 'facebook' ) ?>"><span class="fa fa-facebook"></span></a><?php endif; ?> <?php if ( ! empty( $prefix_googleplus_url ) ) : ?><a href="<?php the_author_meta( 'googleplus' ) ?>"><span class="fa fa-google-plus"></span></a><?php endif; ?> <?php if ( ! empty( $prefix_instagram_url ) ) : ?><a href="<?php the_author_meta( 'instagram' ) ?>"><span class="fa fa-instagram"></span></a><?php endif; ?> <?php if ( ! empty( $prefix_pinterest_url ) ) : ?><a href="<?php the_author_meta( 'pinterest' ) ?>"><span class="fa fa-pinterest"></span></a><?php endif; ?>

You can see it in action here: https://pencil1.blogonyourown.com/author/robertsummer/

免費使用Creator方案
活躍安裝總數
400
目前已測試版本
5.0.22
此外掛程式已可供下載,並可用於你的 WordPress 自助託管安裝。