It doesn’t use archive.php
because it isn’t an archive
example.com/?post_type=mycustom
is still the homepage, but with an additional query parameter
Instead, use the custom post type archive at example.com/mycustom/
It doesn’t use archive.php
because it isn’t an archive
example.com/?post_type=mycustom
is still the homepage, but with an additional query parameter
Instead, use the custom post type archive at example.com/mycustom/