Sort Query by Post In 1.2
Sort Query by Post In is a very light weight (about 4-7 lines of code, version specific!) plug-in intended for developers
executing custom post queries. You’re welcome to include it in your theme and redistribute – just offer us some credit, please
Install easily with the WordPress plugin control panel or manually download the plugin and upload the extracted
folder to the /wp-content/plugins/ directory
Activate the plugin through the ‘Plugins’ menu in WordPress
Modify the appropriate post queries with the orderby parameter set to post__in
query_posts( array( ‘post__in’ => array(20,10,106), ‘orderby’ => ‘post__in’ ) );
That will retrieve posts with IDs 20, 10, and 106 in that order!
No comments yet.