Correct Image Orientation is a plugin for WordPress by Cristian A Sánchez G. Specifically designed to handle images uploaded from an iPhone, this plugin reads the EXIF metadata of each image and automatically corrects its orientation.
The plugin is easy to use. No configuration or setup is required.
More info: https://wordpress.org/plugins/correct-image-orientation/