Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 135281

tfboy on "Issues moving blog from pre-3.5 with custom upload directory"

$
0
0

I'm moving my blog to a new host so have reinstalled wordpress on the new host and was planning to export from the old and import into the new.

However, my previous blog was before version 3.5 where I had defined a custom upload directory (/content) instead of the default wp-content/uploads - I had already disabled the sorting by date feature. So all my media is registered in the media library under that path and of course all the posts show my photos currently.

And since 3.5, I've now learnt that the feature to change the upload disappeared - you cannot believe the headache this has caused!!!

The issue is because my domain is the same, I cannot have both the "old" and "new" installations live at the same time which means the import / export scripts which update cannot work, or rather don't update the path because it cannot see the old site, copy the media across and update.

I've seen I could work around this by modifying the wp-config.php file redirecting the uploads to the /content directory
define( 'UPLOADS', ''.'content' );
and whilst this fixes all the current photos, it doesnt make the media appear in the media library

As WordPress removed the functionality to have a custom upload, I'd rather use the default, supported path. But that would mean updating my database somehow so that all the URLs and img src tags point to the correct /wp-content/uploads directory.

Is there a way of doing this so that:
- All posts now have their img src tags pointing to the default /wp-content/uploads directory
- All my existing media is registered in the Media Library so I can manage it from there ant not have to dig deeper?

website is http://www.xavimage.co.uk

Thanks.

P.S. Yes, removing the custom uploads might simplify things, but again, you cannot imagine the havoc it causes for people who were already using it!


Viewing all articles
Browse latest Browse all 135281

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>