title: Wordpress Form field search via custom post types
body: <p>So we currently have a drop down option that auto populates from custom post types and displays for the customer to choose from.</p>
  <p>However, now their list is extremely long so they would like the functionality of being able to start typing a company name to reduce the amount of results in the list, but i'm completely stuck and need help converting our current option to the desired result.</p>
  <pre><code>    &lt;div class=&quot;custom-control__wrap&quot;&gt;
          &lt;i class=&quot;fas fa-caret-down&quot;&gt;&lt;/i&gt;
          &lt;select  data-field-name=&quot;customer&quot; class=&quot;form-control validate[required] autosaveFieldDropdown&quot; name=&quot;customer&quot; id=&quot;customer&quot;&gt;
              &lt;option value=&quot;&quot; selected&gt;Company name&lt;/option&gt;
              &lt;?php
              $args = array(
                'post_type'   =&gt; 'companies',
                'post_status' =&gt; 'publish',
                'posts_per_page' =&gt; -1,
                'orderby' =&gt; 'title',
                'order' =&gt; 'ASC'
               );
               $posts = get_posts($args);
               ?&gt;
               &lt;?php foreach ($posts as $post): ?&gt;
                 &lt;option value=&quot;&lt;?php echo $post-&gt;ID; ?&gt;&quot; &lt;?php echo ($personalInfoNameObj-&gt;customer == $post-&gt;ID) ? 'selected=&quot;selected&quot;' : '';?&gt; &gt;&lt;?php echo $post-&gt;post_title ; ?&gt;&lt;/option&gt;
               &lt;?php endforeach; ?&gt;
          &lt;/select&gt;
      &lt;/div&gt;
  </code></pre>
  <p>Any help is greatly appreciated</p>