WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Where am I going wrong selecting a custom field from the database?

[Resolved] Where am I going wrong selecting a custom field from the database?

  • I want to retrieve a custom field called fbuid from the wp-usermeta field in the comment-template.php, here is what I have

    <?php $avatar_uid = get_comment($comment->comment_ID)->user_id; ?>
            <?php $fb_uid = $wpdb->get_results("SELECT meta_value FROM $wpdb->usermeta WHERE user_id = $avatar_uid AND meta_key= 'fbuid'"); ?>

    Any help would be greatly appreciated.

    Thanks

  • The topic ‘[Resolved] Where am I going wrong selecting a custom field from the database?’ is closed to new replies.