Title: Importing WP.com
Last modified: August 20, 2016

---

# Importing WP.com

 *  [funsail](https://wordpress.org/support/users/funsail/)
 * (@funsail)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/importing-wpcom/)
 * I’m importing WP.com. I don’t want my images to be in /2012/01/ etc
 * What I did for my other site is filter upload_dir and replace everything with
   a set dir.
 * That was fine, but this blog has 5k images. I did it once and ended up with 31k
   images. I can’t even open the folder in anything!
 * I thought I can live with say /year/ only at least. But how do I do that? I started
   with
 *     ```
       if ( !$time ) {
       		$time = current_time( 'mysql' );
       		$y = substr( $time, 0, 4 );
       		$subdir = "/$y";
       	}
       ```
   
 * This doesn’t work since current_time is of course 2013. I want the year of the
   post date from the import. Is this possible somehow?

The topic ‘Importing WP.com’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [funsail](https://wordpress.org/support/users/funsail/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/importing-wpcom/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
