title: Creating a select dropdown from a .txt?
body: <p>I've a select menu hardcoded in a wordpress (php) theme, but the manager requires to edit those frequently. Is it possible to populate the select dropdown options from a text file import? So he just has to edit the text file and the menu options would change.</p>
  
  <p>The current menu looks like this:</p>
  
  <pre><code>&lt;select name="location" id="sort-location" class="sort-dropdown"&gt; 
              &lt;option value="" selected="selected"&gt;LOCATION:&lt;/option&gt; 
              &lt;option value="" disabled=""&gt;--------------&lt;/option&gt; 
              &lt;option value="hongkong"&gt;Hong Kong&lt;/option&gt; 
              &lt;option value="taiwan"&gt;Taiwan&lt;/option&gt; 
              &lt;option value="mainland_china"&gt;Mainland China&lt;/option&gt; 
              &lt;option value="" disabled=""&gt;--------------&lt;/option&gt; 
              &lt;option value=""&gt;SHOW ALL&lt;/option&gt; 
          &lt;/select&gt;
  </code></pre>