Answers.Body: <p>To get the employees, run an advanced search.  In the relationships section, select the relationship type and enter the organization that the employers are related to.  Then, go up to the top section and find <strong>Display Results As</strong>.  Select "Related Contacts" and then in the relationship type drop-down that appears, select "Employee Of".</p>
  
  <p>You should get results of all the employees.  Create a smart group from this search, and have your directory profile use this new group instead.</p>
  
  <p>Finally, to display the employees' employers, add the field "Current Employer" (available under "Individual") to the profile, making it visible as a result column ("In selector").  (You may need to remove any organization-specific fields and/or create a fresh profile as your profile is now a listing of individuals rather than organizations.)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-28T16:16:45.413Z
Answers.LastActivityDate: 2016-01-28T16:16:45.413Z
Answers.UserDisplayName: Andie Hunt
Answers.Body: <p>Two ways I can think of for identifying the lead contact for an organisation- a contact reference custom field, or a relationship. I'd generally prefer the relationship (you can keep historical information, have more than one of them, etc) but the custom field would be easier to show in a profile.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-31T13:05:23.110Z
Answers.Text: I am using relationship.  I have a household name called Affiliates.  Organizations that are Affiliates are "Relationship as" Affiliate.
Answers.UserDisplayName: Nina Gonzalez
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-30T20:24:47.713Z
Answers.LastActivityDate: 2015-12-30T20:24:47.713Z
Answers.UserDisplayName: DaveFF
Body: <p>I have a public directory list that is created based on a relationship with an organization that is set-up as a smart group.  I have a profile that lists the organizations that are included in the smart group along with their web address and email address.  I also want to include the employees or contacts for each organization.  How do you create a list or directory on a web page that includes an organization name and an individual's first and last name?</p>
  
  <p>I see that this is a limitation of CiviCRM - can't combine individuals with organizations, but that doesn't seem practical.  When you create a directory of member organizations it seems appropriate to include a contact name.  How have others handled this problem?</p>
  
  <p>I am using CiviCRM 4.4 and WordPress.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-30T05:37:04.577Z
Comments.Text: From your other question, I assume you're using Civi 4.4 and WordPress? Please confirm with an edit to your question. Thanks!
Comments.UserDisplayName: Allen Hutchison
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-30T05:38:11.630Z
Comments.Text: Is the directory meant to be 'public' in some way or is the list for staff/admin users only?
Comments.UserDisplayName: Allen Hutchison
Tags: <profile><smartgroups>
Title: Create a membership list with employee name
ThreadText: # Create a membership list with employee name
  
  (Asked by: username_0 on 2015-12-30)
  
  I have a public directory list that is created based on a relationship with an organization that is set-up as a smart group. I have a profile that lists the organizations that are included in the smart group along with their web address and email address. I also want to include the employees or contacts for each organization. How do you create a list or directory on a web page that includes an organization name and an individual's first and last name?
  
  I see that this is a limitation of CiviCRM - can't combine individuals with organizations, but that doesn't seem practical. When you create a directory of member organizations it seems appropriate to include a contact name. How have others handled this problem?
  
  I am using CiviCRM 4.4 and WordPress.
  
  **Tags:** profile, smartgroups
  
  > **Comments:**
  > **username_1**: From your other question, I assume you're using Civi 4.4 and WordPress? Please confirm with an edit to your question. Thanks!  
  > **username_1**: Is the directory meant to be 'public' in some way or is the list for staff/admin users only?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-01-28. Score: 1
  
  To get the employees, run an advanced search. In the relationships section, select the relationship type and enter the organization that the employers are related to. Then, go up to the top section and find **Display Results As**. Select "Related Contacts" and then in the relationship type drop-down that appears, select "Employee Of".
  
  You should get results of all the employees. Create a smart group from this search, and have your directory profile use this new group instead.
  
  Finally, to display the employees' employers, add the field "Current Employer" (available under "Individual") to the profile, making it visible as a result column ("In selector"). (You may need to remove any organization-specific fields and/or create a fresh profile as your profile is now a listing of individuals rather than organizations.)
  
  
  ---
  
  ### Answer by username_3 on 2015-12-30. Score: 0
  
  Two ways I can think of for identifying the lead contact for an organisation- a contact reference custom field, or a relationship. I'd generally prefer the relationship (you can keep historical information, have more than one of them, etc) but the custom field would be easier to show in a profile.
  
  > **Comments:**
  > **username_0**: I am using relationship.  I have a household name called Affiliates.  Organizations that are Affiliates are "Relationship as" Affiliate.  
  
  ---
  
  