how to change wordpress post order category wise

how to change wordpress post order category wise

When we need to re-arrange my recent post in wordpress. they go Ascending/Descending order category wise. Code for change wordpress post order category wise. We can easily achieve this using wordpress api.

how to change wordpress post order category wise

how to change wordpress post order category wise
how to change wordpress post order category wise

use following code:


<!--?php

//The Query
query_posts('cat=1,3,3&posts_per_page=15&order=ASC');

//The Loop
if ( have_posts() ) : while ( have_posts() ) : the_post();
 ..
endwhile; else:
 ..
endif;

?-->

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.