Updated recent posts plug-in for better error handling, based on theme options