fixing use of GLOBALS in widget to get current page ID, now using wp_query->get_queried_object->ID.