Thanks for your help.
However,
This works for posts, not for showing a photo on author.php
at least it doesn’t work for me
author.php
<?php
$authordata = get_userdata();
userphoto_the_author_photo();
?>
Thank you, I think we’re getting somewhere
Now I get this instead of the image :
Warning: Missing argument 1 for get_userdata(), called in /home/.tooter/wp-content/themes/polaroidtheme/author.php on line 17 and defined in tzipiyah.com/wp-includes/pluggable.php on line 121
Whew, have to review the stuff, ok let’s try another way. Just before the loop, add this
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
then your name
then inside the loop
<?php echo userphoto_the_author_photo(); ?>
Thanks but…
Again :-/, I hope I’m not becoming annoying.
I want to display the picture outside of the loop, in a profile I create for each user on author.php . When I use your code in author.php (not the posts but the profile section), nothing shows up…
I use this plugin:
http://geekgrl.net/2007/01/02/profile-pics-plugin-release/
And have this in my author.php:
<?php
global $wp_query, $userdata;
$memberdata = $wp_query->get_queried_object();
get_currentuserinfo();
if (!strstr(author_image_path($memberdata->ID,false), “default”))
author_image_tag($memberdata->ID);
?>
@dillouz: Try this:
global $authordata;
$authordata=get_userdata(get_query_var( 'author' ));
userphoto_the_author_photo();
Otto42
It works, thanks so much!