WordPress.org

Ready to get started?Download WordPress

Forums

Get ID from subscribers posting comments? (3 posts)

  1. pilola
    Member
    Posted 6 years ago #

    Hello!
    My first post here.

    I'm wondering how I should do to get the ID from the "users" comments. I got avatars that are linked to the ID of my registered users that's why I need this.

    Something in the style of get_commentauthorinfo
    Feels like I've been looking everywhere.

    This is the code I use to show the avatar in the "User area" to the user currently logged in.

    <?php
    function show_avatar() {
    			global $userdata; get_currentuserinfo();
                            $avatarID .=  $userdata->ID;
    			avatarupload_display($avatarID);
    			}
    ?>
  2. SteveSmith1983
    Member
    Posted 6 years ago #

  3. pilola
    Member
    Posted 6 years ago #

    Thanks Steve it kind off did! :)

Topic Closed

This topic has been closed to new replies.

About this Topic