added setup_postdata in wp_foreach