Migrate get_results to WP_Query query