I want to display posts from a category called "Shows" and I want to sort the titles (which are in the format: 04/15/2012, 04/19/2012, 05/04/2012) in ascending order. I can get it to sort the category and I can get it to sort in ascending order but when I try both I get an error. I also need the posts to be limited to 5.
I'd appreciate any help.
This is what my code looks like
<ul id="sidebar" class="column colblue equalize">
<?php $my_query = new WP_Query('category_name=shows&posts_per_page=5'); ?>
<h3>" title="<?php the_title(); ?>"><?php the_title(); ?></h3>
<?php the_meta(); ?>
<?php the_content(__('Read more', 'hour24band')); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<!-- Do shows stuff... -->
<?php endwhile; ?>