title: How to change output of a certain Pods field?
body: <p>I have two pods: <code>course</code> and <code>teacher</code>. </p>
  
  <p>Each <code>course</code> has a <code>teacher</code>.</p>
  
  <p>I use shortcodes in order to build a form to define new <code>course</code>:</p>
  
  <pre><code>[pods name='course' form='1' fields='name, teacher' ]
  </code></pre>
  
  <p>When defining a new <code>course</code>, the user can choose the <code>teacher</code> for this <code>course</code>.</p>
  
  <p>By default, the <code>name</code> of the <code>teacher</code> is displayed in a drop down list. I wonder if I can change the output of the <code>teachers</code> in the drop down list. </p>
  
  <p>For example, in addition to the <code>name</code> I want to display a certain field, such as <code>location</code> of the <code>teacher</code> in the drop down list. </p>
  
  <p>Is this possible using the built-in shortcodes of Pods 2?</p>
  
  <hr>
  
  <p><strong>Update:</strong></p>
  
  <p>Following the instructions of Scott, I solved the problem. I wrote the solution into the comment section but formating was lost. Below, I put the code again:</p>
  
  <pre><code>function pods_teacher_pick_data($data, $name, $value, $options, $pod, $id){
      if ($name == "pods_field_teachers") {
          foreach ($data as $id =&gt; &amp;$value) {
              $p = pods('teacher', $id);
              $name = $p-&gt;display('name');
              $city = $p-&gt;display('profile.city.name');
              $value = $name . ' - ' . $city;
          }
      }
      return $data;
  }
  
  add_filter('pods_field_pick_data', 'pods_teacher_pick_data', 1, 6);
  </code></pre>