custom select field populated by allocated post category

This sounds like the first step of a problem I’m currently trying to figure out (specifically, I’m working on populating one select based on a post type, then populating a second select based on the post type selected). If blockquote is a post type,I think it’ll work.

Here’s what I’ve worked out as part of my own project:

function fetch_ID_list($type) {
    // This function is known for corrupting the post ID for some reason.  Therefore I copy $post to $temp and reassert it prior to returning
    global $post;
    $temp = $post;

    $query_params = array(
        'orderby' => 'title',
        'order' => 'ASC'
    );

    $all_posts = waka_taxonomy_query($type, -1, $query_params);

    $return = array();

    if($all_posts->have_posts()) {
        while ($all_posts->have_posts()) {
            $all_posts->the_post();

            $return[] = get_the_ID();
        }
    }

    $post = $temp; // Reassert original post

    return $return;
}

From there you can take the array provided and populate a select

tech