fixing wp_the_query in widgetpres for conditional old query retrieval