But I can’t seem to figure out how the archives work. I’m able to create archives for custom post types, but not based on a custom field.
I duplicated the archive.php template because I want to keep the same design as the posts archive. But can’t figure out the best approach.
What template does generate_do_template_part( 'archive' ); uses?