Posts Tagged ‘widgets’

WordPress postMash Widget

Tuesday, July 21st, 2009

I really like the postMash plugin for WordPress. It allows you to drag and drop your posts into any order. This is great when using posts as events. You can put them into the order that they'll occur rather than the order that you posted them. The only problem is that the Recent Posts widget won't match your post order once you've re-ordered them.

Here I've modified the Recent Posts widget (file: /wp-includes/default-widgets.php) so that it'll work with this plugin.

Insert the following code after line #545 ($r = new WP_Query(array('showposts' =>...)(WP ver-2.8)

$r->set('orderby', 'menu_order');  
$r->set('order', 'ASC');