• Hello,

    I’ve successfully reversed the order of my post in my blog on the Main Index Template (index.php) using:

    <?php query_posts($query_string . “&order=ASC”) ?>
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    However, I would like to reverse the order in the Archives as well. But I can’t figure out how to add it in without getting php errors.

    The Archive code is:

    <?php
    	$exclude_cats = theme_get_option('blog','exclude_categorys');
    	foreach ($exclude_cats as $key => $value) {
    		$exclude_cats[$key] = -$value;
    	}
    	if(stripos($query_string,'cat=') === false){
    	query_posts($query_string."&cat=".implode(",",$exclude_cats));
    	}else{
    		query_posts($query_string.implode(",",$exclude_cats));
    	}
    	get_template_part('loop','archive');
    ?>
    <div class="clearboth"></div>

    Any help would be appreciated. ??

  • The topic ‘Reverse order in archive in TheTravelTheme’ is closed to new replies.