title: Using wp_dropdown_page() to display a dropdown of a custom post type
body: <p>I'm trying to create a dropdown list with the list of a certain post type.
  I saw that I could use the wp_dropdown_pages function to do that.
  I added this code inside my td but when the page displays the code is not interpreted. The are only few examples to look at.</p>
  
  <pre><code>&lt;td&gt;&lt;?php wp_dropdown_pages(array('id'=&gt;'marque0','post_type' =&gt; 'Brands')); ?&gt;&lt;/td&gt;
  </code></pre>
  
  <p>additionally I need to filter a second dropdown list which contains only child post of the parent selected in the first dropdown. To do that I need the id of the parent post. How can I get this from the element selected in the first dropdown list ?</p>
  
  <p>Thanks a lot. </p>
  
  <p>Update :</p>
  
  <p>I found a way to go around the usage of PHP inside the wordpress page, I created shortcodes to call the wp_dropdown_pages, then I use the shortcodes inside my page.</p>