I'm on a Category.php page which does the loop like this:
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
I usually do a custom loop like this:
<?php //Define the Loop $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('posts_per_page=2&orderby='.$orderBy.'&paged='.$paged); ?>
I want to add the orderby variable to the first loop (the one on category.php) but can't figure out how to implement it.