Title: maxhaesslein's Replies | WordPress.org

---

# maxhaesslein

  [  ](https://wordpress.org/support/users/maxhaesslein/)

 *   [Profile](https://wordpress.org/support/users/maxhaesslein/)
 *   [Topics Started](https://wordpress.org/support/users/maxhaesslein/topics/)
 *   [Replies Created](https://wordpress.org/support/users/maxhaesslein/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/maxhaesslein/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/maxhaesslein/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/maxhaesslein/engagements/)
 *   [Favorites](https://wordpress.org/support/users/maxhaesslein/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[DsgnWrks Importer for Instagram] 1080 pixel imports](https://wordpress.org/support/topic/1080-pixel-imports/)
 *  [maxhaesslein](https://wordpress.org/support/users/maxhaesslein/)
 * (@maxhaesslein)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/1080-pixel-imports/#post-6390073)
 * 1080px images are not yet officially supported via the instagram API, however
   you can access them by replacing the size in the image url.
 * A quick hack for this plugin:
 * wp-content/plugins/dsgnwrks-instagram-importer/dsgnwrks-instagram-importer.php
 * around line 1116 you see this:
 * `$tmp = download_url( $media_url );`
 * right **before** this line, insert
 * `$media_url = str_replace( 's640x640', 's1080x1080', $media_url);`
 * but be aware that this change will be reverted the next time you update the plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[DsgnWrks Importer for Instagram] Imports timing out](https://wordpress.org/support/topic/imports-timing-out/)
 *  [maxhaesslein](https://wordpress.org/support/users/maxhaesslein/)
 * (@maxhaesslein)
 * [12 years ago](https://wordpress.org/support/topic/imports-timing-out/#post-4625803)
 * Here is a fast and very dirty workaround:
 * open wp-contents/plugins/dsgnwrks-instagram-importer/dsgnwrks-instagram-importer.
   php
 * (make a backup of this file!)
 * go to
 *     ```
       public function import( $userid = false ) {
       ```
   
 * scroll down until you find
 *     ```
       // Save the date/time to notify users of last import time
       ```
   
 * (this should be around line 556)
 * just **before** this line, add:
 *     ```
       else{
       	// set next url to continue importing
       	if( !empty( $messages['next_url'] ) ) {
       		set_transient( 'get_option', $messages['next_url'] );
       		$notices['next_url'] = $messages['next_url'];
       		return $notices;
       	}
       }
       ```
   
 * now import your images. The importer will hit the date set or will timeout. Now
   hit ‘import’ again — this time it will take some time until the importer starts
   importing again, because it will loop over every image already imported. But 
   eventually it will import your older posts.
 * After you imported all old posts, remove the lines again (or restore your backup
   of the dsgnwrks-instagram-importer.php file) because I don’t know if this code
   has any effect on the cron importer.

Viewing 2 replies - 1 through 2 (of 2 total)