how to change wordpress post order category wise

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

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;


?>

You may like following Articles!

  • Pingback: Tweets that mention how to change wordpress post order category wise | Wordpressapi.com - Developer Code book -- Topsy.com

  • http://epaurbanministries.com/ home and family

    What youre saying is completely true. I know that everybody must say the same thihttp://www.adsense-id.com/forums/images/vtc/36_002.gifng, but I just think that you put it in a way that everyone can understand. I also love the images you put in here. They fit so well with what youre trying to say. Im sure youll reach so many people with what youve got to say.

  • http://epaurbanministries.com home and family

    Amazing solution admin. You just help my homework for next examination Thanks admin

  • http://dankerizer.net My Wordpress Journey

    This is the type of information that should be shared around the web. Shame on the search engines for not positioning this post higher!

  • http://www.sylxx.net Houston Pogue

    good luck for end users

  • http://www.evanjohns.net Lavona Tavorn

    Hallo Dude , i like with u blog. LOL Please come to my blog

  • http://build-muscles.info Carmon Gata

    Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!

  • http://top-fitness-equipment.info Joan Dafoe

    Awesome post. I so good to see someone taking the time to share this information

  • http://employment-services.info Corliss Orsak

    I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.

  • http://heart-diseases-symptoms.info Kiera Badanguio

    Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.

  • http://traffic2website.info Laura Lough

    I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post?

  • http://detoxification-diets.info Felipa Giessinger

    Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader

  • http://freebusinesscardholder.com Riley Pockrus

    Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.

  • http://uautoclub.com Araceli Dolfay

    Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!