Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kharr212

    (@kharr212)

    Absolutely! I’d love to talk to someone about this. We can both benefit from it. Please contact me via email.

    Oh yes, wouldn’t this be nice. I’ve been wondering that myself. However, I don’t think it’s possible.:-(

    Thread Starter kharr212

    (@kharr212)

    Thanks Michael, got it! I think the key was that the category is an array. Everything works now. Thanks again for your help!!

    Thread Starter kharr212

    (@kharr212)

    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!

Viewing 4 replies - 1 through 4 (of 4 total)