Title: Archive dropdown for custom post type
Last modified: August 21, 2016

---

# Archive dropdown for custom post type

 *  [sdesigns](https://wordpress.org/support/users/sdesigns/)
 * (@sdesigns)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/archive-dropdown-for-custom-post-type/)
 * I am tring to figure out how to have a dropdow that shows an archive of posts
   from a custom post type. I am using the code below but I cant figure out how 
   to only show posts from the letters post type.
 * Thank you for any help on this.
 *     ```
       <select name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
         <option value=""><?php echo esc_attr( __( 'Select Month' ) ); ?></option>
         <?php wp_get_archives( array( 'type' => 'monthly', 'format' => 'option', 'show_post_count' => 1 ) ); ?>
       </select>
       ```
   

The topic ‘Archive dropdown for custom post type’ is closed to new replies.

## Tags

 * [post-type](https://wordpress.org/support/topic-tag/post-type/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [sdesigns](https://wordpress.org/support/users/sdesigns/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/archive-dropdown-for-custom-post-type/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
