new here and been searching everywhere for the answer before coming here, hopefully someone with experience can help me swiftly.
I have been unable to change the order of my custom "portfolio" posts. I would like the order to be ascending by title - not in reverse by creation date as default.
I think I have found the right file and code but cannot correctly modify it, I appreciate and welcome any changes to code,
<div id="content" class="grid_23 prefix_1"> <?php include_once (TEMPLATEPATH . '/title.php');?> <?php global $more; $more = 0;?> <?php $values = get_post_custom_values("category-include"); $cat=$values; ?> <?php $catinclude = 'portfolio_category='. $cat ;?> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); ?> <?php $wp_query->query("post_type=portfolio&". $catinclude ."&paged=".$paged.'&showposts=9'); ?> <?php if ( ! have_posts() ) : ?> <div id="post-0" class="post error404 not-found"> <h1 class="entry-title"><?php _e( 'Not Found', 'theme1417' ); ?></h1> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'theme1417' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- #post-0 --> <?php endif; ?>