Show wordpress search result in Ascending order

WordPress shows search result always in descending order to change it into Ascending order follow the given blow instruction.

Change this line

<?php if(have_post()): ?>


<?php query_posts(‘order=ASC’);



Now you are done to show your search result in Ascending order.

To seek challenging roles and to achieve excellence in the field of Open Source Web Technology with a profound spirit of commitment and dedication.

Share This Post

Related Articles

© 2017 Sumit Bansal. All rights reserved. Site Admin · Entries RSS · Comments RSS
Powered by WordPress · Designed by Theme Junkie