wordpress loop for specific category

Question

i have this snippet for specific category it works perfect
but i want little modification to show posts by Ascending order.

<?php

 // The Query
 query_posts( array ( 'category_name' => 'A', 'posts_per_page' => -1 ) );

 // The Loop
while ( have_posts() ) : the_post(); ?>
   <li>
     <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
 </li>

 <?php endwhile;

 // Reset Query
 wp_reset_query();

 ?>
0
user23407 1 month 0 Answers 11 views 0

Leave an answer