I have a dropbox that populates Custom Post Type titles as an option. It uses WP Query to pull those titles from WordPress.
while($the_query->have_posts()) : $the_query->the_post(); ?>
<option><?php the_title(); ?></option>
How do I have it so that on the page I am currently on (one of the CPT pages in the dropdown) is the one in the dropdown already selected?
Read more here:: Set default option in dropdown of WP_Query?