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

Question

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.

0
Chuck 7 months 2022-01-20T19:31:37-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse