Based on David Ellenwood's plugin - An advanced posts display widget with many options.