Answers.Body: <p>Not sure what you are trying to do exactly, but if you are coding you could use the CiviCRM API to first find the teacher for the student with the API Relationship/Getsingle and then find the data for the teacher with the API Contact/Getsingle?</p>
  
  <p>Aer you familiar with using the CiviCRM API? If not, explanation can be found on the documentation wiki: <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-07T07:12:48.273Z
Answers.Text: is there any way to add search functionality from admin end or only solution is API ?
Answers.UserDisplayName: raveena sharma
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-07T09:52:31.120Z
Answers.Text: I am not used to working with profiles on Wordpress, afraid I can not help ypu there. But I am sure there will be others who can :-)
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-07T07:05:22.970Z
Answers.LastActivityDate: 2016-04-07T07:05:22.970Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>In Wordpress I create two forms: one for a teacher and a second for a student. I need to search for teacher data using the student search form. But I can't understand how to do it. Please give solution, how can i solve this issue?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-07T07:04:04.480Z
Comments.Text: It helps if you add the version of CiviCRM you are using and give a little more detail on what you are trying to achieve?
Comments.UserDisplayName: ErikH - CiviCooP
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-07T07:08:29.440Z
Comments.Text: civiCRM version is 4.6 . my first time working with civiCRM . i create two profiles one for add data of students and second for teachers. after that use some fields as searchable and create two new page first for teacher search and second for student search. but search is not working for me dont know why. please help. i want working functionality of search
Comments.UserDisplayName: raveena sharma
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-07T10:30:31.413Z
Comments.Text: do you mean that when someone fills in the Student Form you need them to have a field that will reference the Teacher? if so perhaps you could try a Contact Reference field
Comments.UserDisplayName: petednz - fuzion
Tags: <custom-search>
Title: How can i solve search issue in civiCRM?
ThreadText: # How can i solve search issue in civiCRM?
  
  (Asked by: username_0 on 2016-04-07)
  
  In Wordpress I create two forms: one for a teacher and a second for a student. I need to search for teacher data using the student search form. But I can't understand how to do it. Please give solution, how can i solve this issue?
  
  **Tags:** custom-search
  
  > **Comments:**
  > **username_1**: It helps if you add the version of CiviCRM you are using and give a little more detail on what you are trying to achieve?  
  > **username_0**: civiCRM version is 4.6 . my first time working with civiCRM . i create two profiles one for add data of students and second for teachers. after that use some fields as searchable and create two new page first for teacher search and second for student search. but search is not working for me dont know why. please help. i want working functionality of search  
  > **username_2**: do you mean that when someone fills in the Student Form you need them to have a field that will reference the Teacher? if so perhaps you could try a Contact Reference field  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-04-07. Score: 1
  
  Not sure what you are trying to do exactly, but if you are coding you could use the CiviCRM API to first find the teacher for the student with the API Relationship/Getsingle and then find the data for the teacher with the API Contact/Getsingle?
  
  Aer you familiar with using the CiviCRM API? If not, explanation can be found on the documentation wiki: <https://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API>
  
  > **Comments:**
  > **username_0**: is there any way to add search functionality from admin end or only solution is API ?  
  > **username_1**: I am not used to working with profiles on Wordpress, afraid I can not help ypu there. But I am sure there will be others who can :-)  
  
  ---
  
  