[Resolved] Where am I going wrong selecting a custom field from the database?
I want to retrieve a custom field called
wp-usermetafield 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.
- The topic ‘[Resolved] Where am I going wrong selecting a custom field from the database?’ is closed to new replies.