このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

User Social Profiles

説明

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/

インストール

  1. Upload user-social-profiles.php to the /wp-content/plugins/ directory
  2. WordPress の「プラグイン」メニューからプラグインを有効化してください
  3. Place in your template:

    <a href="”>
    <a href="”>
    <a href="”>
    <a href="”>
    <a href="”>

評価

このプラグインにはレビューがありません。

貢献者と開発者

User Social Profiles はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“User Social Profiles” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

0.1.4

*21 Dec 2015 – WordPress 4.4 tested
*Example improved.

0.1.3

*16 Nov 2015
*pot file added

0.1.2

*13 Nov 2015
*load_plugin_texdomain added

0.1.1

*12 Nov 2015
*text-domain updated

0.1

*12 Nov 2015
*initial release.