- This topic is empty.
-
AuthorPosts
-
March 4, 2012 at 12:02 am #36971
nlfatkid
MemberI’m desperately trying to figure out why the User Photo plugin isn’t working.
I’ve posted this problem in the WordPress Stack Exchange, with not luck.I’m creating a page of profiles (similar to a page of posts). I’m using the User Photo plugin to call my user profile pictures. Here’s my code, thus far:
// Get the authors from the database ordered by user nicename
global $wpdb;
$query = "SELECT ID, user_nicename from $wpdb->users ORDER BY user_nicename";
$author_ids = $wpdb->get_results($query);
// Loop through each author
foreach($author_ids as $author) :
// Get user data
$curauth = get_userdata($author->ID);
// If user level is above 0 or login name is "admin", display profile
if($curauth->user_level > 0 || $curauth->user_login == 'admin') :
// Get link to author page
$user_link = get_author_posts_url($curauth->ID);
// Set default avatar (values = default, wavatar, identicon, monsterid)
$avatar = 'wavatar';
?>
I can’t get the User Photo plugin to call multiple, different users’ photos. Currently it’s just calling in the user’s photo who created the page (me).
Thoughts? Help? (Preemptive) thanks!
PS. I don’t know if this is appropriate, but I’m willing to pay for the help (paypal).
March 4, 2012 at 4:12 pm #98124nlfatkid
MemberHmm… so my loop isn’t the problem? Actually I’m looking to show just “Authors”.
Should I be looking at this?
Should I be usingarchive.php
?March 4, 2012 at 6:50 pm #98130nlfatkid
MemberWell I know that it’s calling the right values, it’s the plugin that’s the problem. This pictures are coming up as the creator of the page itself.
I have not found a way to upload a picture of a user, have it be a specific size, and have the loop I have call that picture, all at once.I don’t mind throwing $ your way if you can help me on this…
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.