title: how to display custom posts types by title in a drop down menu in wordpress
body: <p>i want to add a dropdown with the custom posts title, basically the code iam using shows default posts in a dropdown by title but i want to display a custom post type in a drop down any help plz here is my code</p>
  
  <pre><code>&lt;select name="archive-dropdown"    
  onchange="document.location.href=this.options[this.selectedIndex].value;"&gt;
  &lt;option value=""&gt;&lt;?php echo esc_attr( __( 'Select Location' ) ); ?&gt;&lt;/option&gt; 
  &lt;?php wp_get_archives( array( 'type' =&gt; 'postbypost', 'format' =&gt; 'option',  
  'show_post_count' =&gt; 1) ); ?&gt;
   &lt;/select&gt;  
  </code></pre>