A Sidebar widget to display the Author(s) profile on any Page or Post along with Social web links.
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. 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, 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.
author-profile.zip
. Then upload the folder containing author-profile.php
to the /wp-content/plugins/
directory.Plugins
menu in WordPress. For details refer this Codex page.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.style.css
). Please refer the answer to the FAQ section for the CSS code.To add the ability to add Social URLs in the User profile, please add the following add to your Theme functions file:
/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’;
return $contactmethods;
}
add_filter(‘user_contactmethods’,’author_spotlight_contactmethods’);
Code clean-up.
author_spotlight_contactmethods
function in your theme functions file to be able to add these URLs to the author profiles (refer the installation instructions).Fixed issues with image path. Some other minor fixes.