I am trying to pass args to archive.php so that I can order the posts, set the number of posts, etc..
but the query is done like this
<?php if (have_posts()): ?>
<?php while (have_posts()): the_post();?>
if it wasnew WP_Query($args); i was able to pass the args here but this can’t be done in archive.php template?
Read more here:: how to pass args for archive.php query?