Importing WP.com
-
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.