Title: Author Spotlight (Widget)
Author: Debashish
Published: <strong>2009 年 9 月 26 日</strong>
Last modified: 2017 年 2 月 7 日

---

搜索插件

![](https://ps.w.org/author-profile/assets/banner-772x250.png?rev=1590771)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/author-profile/assets/icon-128x128.png?rev=1294997)

# Author Spotlight (Widget)

 作者：[Debashish](https://profiles.wordpress.org/debashish/)

[下载](https://downloads.wordpress.org/plugin/author-profile.3.4.zip)

 * [详情](https://cn.wordpress.org/plugins/author-profile/#description)
 * [评价](https://cn.wordpress.org/plugins/author-profile/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/author-profile/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/author-profile/#developers)

 [支持](https://wordpress.org/support/plugin/author-profile/)

## 描述

Author Spotlight widget displays the profile of the author(s) with Social links (
example: Twitter, Facebook) and his/her profile picture or Gravatar on any post 
or page that has an Author. The widget automatically detects the current author(
s) of the displayed post or page; just drag and drop the widget on your sidebar 
and you are done.

To display a custom photograph with the Author’s Profile you may install the [User Photo](https://wordpress.org/extend/plugins/user-photo/).
In absence of this plugin the widget will fall-back to displaying the Gravatar associated
with the user. If your posts have multiple authors you may use the [Co-Authors Plus](https://wordpress.org/extend/plugins/co-authors-plus/),
the Author Spotlight will then display all the author profiles one below another
for such post/page.

Note that installing the User Photo or Co-Author plugin is purely optional, this
widget will work fine without them as well.

If you face any issues with the plugin or have any suggestion/feature requests please
do so [at the support forum](https://wordpress.org/tags/author-profile).

## 屏幕截图

 * [[
 * Widget configuration screen.
 * [[
 * Multiple author profiles (co-authors) displayed on the sidebar.
 * [[
 * This is how the widget looks like on the single-page sidebar after configuration.

## 安装

 1.  Download and unzip `author-profile.zip`. Then upload the folder containing `author-
     profile.php` to the `/wp-content/plugins/` directory.
 2.  Alternatively, you may use the Automatic installation feature of WordPress.
 3.  Activate the plugin through the `Plugins` menu in WordPress. For details [refer this Codex page](https://codex.wordpress.org/Managing_Plugins).
 4.  To display `Author Spotlight`, browse to `Appearance > Widgets` and drag-and-drop
     the ‘Author Spotlight” widget to desired sidebar. You may configure the widget
     according to your needs. Save your changes and you are done.
 5.  To enable the default look & feel of your widget you may copy/paste the suggested
     CSS at the end of your theme CSS file (usually `style.css`). Please refer the 
     answer to the [FAQ section](https://wordpress.org/extend/plugins/author-profile/faq/)
     for the CSS code.
 6.  To add the ability to add Social URLs in the User profile, please add the following
     add to your Theme functions file:
 7.  /_Add Social URLs_/
      function author_spotlight_contactmethods( $contactmethods){
     if ( !isset( $contactmethods[‘twitter’] ) ) $contactmethods[‘twitter’] = ‘Twitter’;
     if ( !isset( $contactmethods[‘facebook’] ) ) $contactmethods[‘facebook’] = ‘Facebook’;
     if ( !isset( $contactmethods[‘linkedin’] ) ) $contactmethods[‘linkedin’] = ‘LinkedIn’;
     if ( !isset( $contactmethods[‘flickr’] ) ) $contactmethods[‘flickr’] = ‘Flickr’;
     if ( !isset( $contactmethods[‘myspace’] ) ) $contactmethods[‘myspace’] = ‘MySpace’;
     if ( !isset( $contactmethods[‘friendfeed’] ) ) $contactmethods[‘friendfeed’] =‘
     Friendfeed’; if ( !isset( $contactmethods[‘delicious’] ) ) $contactmethods[‘delicious’]
     = ‘Delicious’; if ( !isset( $contactmethods[‘digg’] ) ) $contactmethods[‘digg’]
     = ‘Digg’; if ( !isset( $contactmethods[‘feed’] ) ) $contactmethods[‘feed’] = ‘
     XML Feed’; if ( !isset( $contactmethods[‘tumblr’] ) ) $contactmethods[‘tumblr’]
     = ‘Tumblr’; if ( !isset( $contactmethods[‘youtube’] ) ) $contactmethods[‘youtube’]
     = ‘YouTube’; if ( !isset( $contactmethods[‘blogger’] ) ) $contactmethods[‘blogger’]
     = ‘Blogger’; if ( !isset( $contactmethods[‘googleplus’] ) ) $contactmethods[‘googleplus’]
     = ‘Google+’; if ( !isset( $contactmethods[‘instagram’] ) ) $contactmethods[‘instagram’]
     = ‘Instagram’; if ( !isset( $contactmethods[‘slideshare’] ) ) $contactmethods[‘
     slideshare’] = ‘Slideshare’; if ( !isset( $contactmethods[‘stackoverflow’] ) )
     $contactmethods[‘stackoverflow’] = ‘Stackoverflow’; if ( !isset( $contactmethods[‘
     posterous’] ) ) $contactmethods[‘posterous’] = ‘Posterous’;
 8.      ```
         return $contactmethods;
         ```
     
 9.  }
 10. add_filter(‘user_contactmethods’,’author_spotlight_contactmethods’);

## 评价

![](https://secure.gravatar.com/avatar/f52a3e6a693008cb66f1458edf5c19421170d9e76fbcad7de2ded43fa7669fff?
s=60&d=retro&r=g)

### 󠀁[Does what it says on the tin](https://wordpress.org/support/topic/does-what-it-says-on-the-tin-176/)󠁿

 [brewhk](https://profiles.wordpress.org/brewhk/) 2016 年 9 月 3 日 1 回复

We needed it only for its most basic features, and it works out-of-the-box

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/author-profile/reviews/)

## 贡献者及开发者

「Author Spotlight (Widget)」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Debashish ](https://profiles.wordpress.org/debashish/)

[帮助将「Author Spotlight (Widget)」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/author-profile)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/author-profile/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/author-profile/)，或通过[RSS](https://plugins.trac.wordpress.org/log/author-profile/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/author-profile/)。

## 更新日志

#### 3.4

 * Fixed Readme file, as WordPress plugin page was not displaying the FAQs correctly.
   Minor code clean-up.

#### 3.3

Code clean-up.

#### 3.2

 * Fixed issues with description text inadvertently showing up as hyper-link for
   some icons.
 * Added support for 6 more social sites (Google+, Posterous, Stackoverflow, Slideshare,
   Instagram and Blogger). Do remember to update the `author_spotlight_contactmethods`
   function in your theme functions file to be able to add these URLs to the author
   profiles (refer the installation instructions).

#### 3.1

Fixed issues with image path. Some other minor fixes.

#### 3.0

 * Rewritten to the new Widget API. Now works with any page (not just “Single”).
   Added feature to display Social icons (optional). Provided example CSS.

#### 2.1

 * Bug fix to correct a method call.

#### 2.0

 * Added support for the “Co-Authors Plus” plugin to display multiple author profiles
   for co-authored posts.

#### 1.2

 * Minor change: Fallback to show Website URL label only when URL is present.

#### 1.1

 * Bug-fix to ensure proper fall-back if the User-photo plugin doesn’t exist. Added
   plugin URL.

#### 1.0

 * Initial public release.

## 额外信息

 *  版本 **3.4**
 *  最后更新：**9 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/author-profile/)
 * 标签
 * [author](https://cn.wordpress.org/plugins/tags/author/)[author bio](https://cn.wordpress.org/plugins/tags/author-bio/)
   [Author Profile](https://cn.wordpress.org/plugins/tags/author-profile/)[authors](https://cn.wordpress.org/plugins/tags/authors/)
   [profile](https://cn.wordpress.org/plugins/tags/profile/)
 *  [高级视图](https://cn.wordpress.org/plugins/author-profile/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/author-profile/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/author-profile/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/author-profile/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/author-profile/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/author-profile/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/author-profile/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/author-profile/reviews/)

## 贡献者

 *   [ Debashish ](https://profiles.wordpress.org/debashish/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/author-profile/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://paypal.me/MitaliC)