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
<select name="archive-dropdown"
onchange="document.location.href=this.options[this.selectedIndex].value;">
<option value=""><?php echo esc_attr( __( 'Select Location' ) ); ?></option>
<?php wp_get_archives( array( 'type' => 'postbypost', 'format' => 'option',
'show_post_count' => 1) ); ?>
</select>