Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Author profile box in sidebar widget WordPress

  • SOLVED

I'm looking for a solution to add an author profile excperpt in the sidebar of my single post pages

http://184.172.177.95/~chinad/?p=1495

I have many authors and want the correct author to display for the latest post that is showing on any given post in a category.

thanks
steve

Answers (4)

2012-05-25

Arnav Joy answers:

check this plugin
http://wordpress.org/extend/plugins/author-profile/


Steve Watson comments:

Thats perfect Arnav, thanks. How do I remove the image function (I dont need it)


Arnav Joy comments:

find the following line in author-profile.php plugin file

//Display author URL, if present

if(function_exists('userphoto_exists') && userphoto_exists($authordata)){
userphoto_thumbnail($authordata);
}
else {
echo get_avatar($authordata->ID, 96);
}


and replace it with it

/*if(function_exists('userphoto_exists') && userphoto_exists($authordata)){
userphoto_thumbnail($authordata);
}
else {
echo get_avatar($authordata->ID, 96);
}*/


Arnav Joy comments:

if you want to hide it using ccs then paste following line in your css file

#post_author_profile img{ display:none}


Steve Watson comments:

Does this plug in not support multiple sidebars? I have several custome layouts so need to use the widget in mulitple sidebars.

Any ideas?

thanks

2012-05-25

Agus Setiawan answers:

hope this tutorial will help you,

http://www.webtricksblog.com/display-add-author-profile-wordpress.html

thanks.

2012-05-25

Daniel Yoen answers:

Put this code in your sidebar.php

<?php
if (is_singular())
{
global $post;
$author_id=$post->post_author; //get id

$field='meta name';
the_author_meta( $field, $author_id );
}
?>

Replace meta name with a valid parameter that available as field name :

user_login
user_pass
user_nicename
user_email
user_url
user_registered
user_activation_key
user_status
display_name
nickname
first_name
last_name
description
jabber
aim
yim
user_level
user_firstname
user_lastname
user_description
rich_editing
comment_shortcuts
admin_color
plugins_per_page
plugins_last_view
ID

hope this help. :)
Daniel

2012-05-25

Michael Caputo answers:

Are you looking for a widget solution? I can put one together for you if you'd like.