Re: Custom profile field – how to use in theme?
Ok, thought I’d follow up in case anyone tries to do the same thing.
Here’s the code that ended up working:
$user_id = $comment->user_id;
$isMember = xprofile_get_field_data( ‘Member’, $user_id );
if ($isMember == “”) {
} else {
?>
Abonné
<?php
}
No idea how this would be done if you were testing for more than one checkbox though, but for my use (either checked or not), it worked just fine.