title: _wp_page_template returns empty array in get_pages
body: <p>According to other's posts, and the <a href="https://codex.wordpress.org/Function_Reference/get_pages" rel="nofollow noreferrer">docs</a> for <code>get_pages()</code>, you can filter the array that's returned by pages only using a certain template type.</p>
  
  <p>However, for me this isn't working, and I don't know why, I just get an empty array returned.</p>
  
  <p>This is my exact code:</p>
  
  <pre><code>&lt;?php $procedures = get_pages(array(
      'meta_key' =&gt; '_wp_page_template',
      'meta_value' =&gt; 'template-procedure-minimal.php'
  )); //var_dump($procedures); ?&gt;
  
  &lt;select name="procedureID" id="procedureID" class="form-control"&gt;
      &lt;?php foreach($procedures as $p) {
          echo '&lt;option value="'.$p-&gt;ID.'"';
          if($p-&gt;ID == $bv_set-&gt;procedureID) {
              echo ' selected="selected"';
          }
          echo '&gt;'.$p-&gt;post_title.'&lt;/option&gt;';
      } ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The template file I'm specificing is in the root of my current theme, along with the standard <code>page.php</code>, <code>single.php</code> etc. The template file exists, and is being used.</p>
  
  <p>I can confirm there is something wrong when I change it to even <code>page.php</code>, the array is still empty when returned.</p>
  
  <p>Is there anything I'm missing?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Thanks for the response below, this did solve my issue. However, I'd like to ask now if it's possible to have multiple page templates?</p>
  
  <p>If I try the below, the array returned only contains the last template found in the array.</p>
  
  <pre><code>&lt;?php $procedures = get_pages(array(
      'meta_key' =&gt; '_wp_page_template',
      'meta_value' =&gt; array('template-procedure.php', 'template-procedure-minimal.php')
  )); ?&gt;
  </code></pre>