Michael, thanks for the help. But either I’m still missing something or the code above does not work. This is actually an archives template if that even matters. If I use your code above, then ALL categories are displayed ASC.
Just so we both understand, the logic is such
If category is pastevents or photos
display in ascending order
If any other category
display in descending order
Besides your code, I have also tried
<?php if (is_category('pastevents,photos')) {; ?>
<?php query_posts($query_string . "&order=ASC"); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
asc order
<?php endwhile; ?>
<?php }elseif( is_category() ) { ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
desc order
<?php endwhile; ?>
<?php } ?>
<?php endif ?>
Anymore ideas? It does not seem that tough, except for the fact that I’m a noob and am still trying to learn the syntax. Thanks!