My theme's archive template uses this for the loop,
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Seems to be ordered by post title but I need them ordered by the post id. Just need help with the syntax i think. How do I change the order of the loop list of posts or incorporate this in to the loop? I am researching this but if anyone has a simple solution I would be extremely grateful.
$args = array( 'orderby' => 'ID', 'order' => 'ASC', ); $query = new WP_query ( $args );