這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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. Activate the plugin through the ‘Plugins’ menu in 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.