Wordpress Plugins – Extensions

Just another WordPress.com weblog

Sort Query by Post In 1.2

Author: Jacob M Goldman (C. Murray Consulting)
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!

Sort Query by Post In 1.2


August 2, 2010 - Posted by | download, extension, extensions, free, get, internet, plugin, plugins, Uncategorized, wordpress

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: