title: Infusionsoft PHP SDK retrieve and display data from custom field
body: <p>So the gist of this question is, I have an affiliate portal that users can submit leads through, this information is then passed along and stored as a contact in a campaign on Infusion Soft, What I cannot figure out is how I can go the other way and display data from a custom field in the contact card on IS back on the page. In this case the status of the lead. By default it will say "processing" but when a team member either denies or accepts the lead I want it to display that back in the portal. </p>
  
  <p>Using the PHP iSDK.</p>
  
  <p>My portal looks as follows, 
  <a href="https://i.stack.imgur.com/w2EGb.jpg" rel="nofollow noreferrer">portal example</a>
  The leads in there currently are stored in the wordpress database as well as in infusionsoft. When loading the page it loads the values from the WP database. I would like it to be such that the "status" reflects what is in the custom field on infusion soft for each lead.</p>
  
  <pre><code>$path = $_SERVER['DOCUMENT_ROOT'];
  $path .= "/scripts/isdk.php";
  require_once ($path);
  $app = new iSDK();
  if ($app-&gt;cfgCon("rz297")) {                                                              
      $returnFields = array('_LoanStatus');
      $conDat = $app-&gt;dsLoad("Contact", 43434, $returnFields);                                    
  }
  </code></pre>
  
  <p>Right now I just have the one contact ID in their to test getting the value of the custom field, but I would need to be able to get it from multiple contacts, i.e. the leads</p>