Creating select dropdown with parent-level custom post types

Found the answer. I was using the terms nomenclature to call my info. Had to update to:

echo "<option value="." . $post->post_name . "">" . $post->post_title . "</option>\n";

And now it’s working just fine. (I also eliminated class cause I didn’t need it here.)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)