Drop down list of all post in custom post type (1 post)

  1. stemie
    Posted 3 years ago #

    I'm struggling to find an answer.
    I would to list all my posts in a custom post type.
    I found this for archives:

    <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( 'type=monthly&format=option&show_post_count=1' ); ?>

    but I want to get the custom posts not the monthly archives.

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic