Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Desperate WP Plugin Help

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36971
    nlfatkid
    Member

    I’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).

    #98124
    nlfatkid
    Member

    Hmm… so my loop isn’t the problem? Actually I’m looking to show just “Authors”.
    Should I be looking at this?
    Should I be using archive.php?

    #98130
    nlfatkid
    Member

    Well 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…

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.