Site icon Hip-Hop Website Design and Development

How do I Populate a Table Field with User Meta Data?

I’m very new to this and hoping this is an easy question.

I’m trying to populate a row field with the organization name. The organization name is in the usermeta table.

    <?php
      break;
       case 'col_organization':
     ?>
      <td <?php echo $attributes; ?>><?php echo get_user_meta($rec,organization_name,true); ?></td>
      

This code works to pull the email from the user table

     <?php
      break;
      case 'col_email':
     ?>
     <td <?php echo $attributes; ?>><?php echo $rec->email; ?></td>

Thanks in advance.