query_posts( array ( 'post__in' => array( 5, 76, 21, 56, 3 ) ) );
I’d like to query the Loop using post__in
and a set WordPress IDs. I’d then like to run through the Loop in the exact order of the query. Does anyone know if that is possible?
query_posts( array ( 'post__in' => array( 5, 76, 21, 56, 3 ) ) );
I’d like to query the Loop using post__in
and a set WordPress IDs. I’d then like to run through the Loop in the exact order of the query. Does anyone know if that is possible?
You must be logged in to post a comment.
Yes, using this plugin:
http://wordpress.org/extend/plugins/sort-query-by-post-in/
Also see http://core.trac.wordpress.org/ticket/13729