Images Are In Server But Not Showing On Front End

WordPress 11 posts 4 voices

  1. Part 2: I used to have them in an old folder called “Cape_Town” when you could define the folder in wordpress. I’d like to change it to default in the /wp-content/uploads/ folder.
    What’s the best way to do this? (Since some images in the theme shortcodes are referenced by the image id and not just the filepath)

  2. Have you tried just keeping your old Cape_Town folder? Leave the old images there. Any new images go into the normal wp-content/uploads.

    You can still define the uploads folder if you want. I believe there’s a wp-config.php setting for that. I can dig it up if you want.

  3. Have you checked CHMODs on the new server?
    Are your links matching with file names?
    (May be the new server works more case sensitive than the old one.)

  4. @Justin – yes, I have the old Cape_Town still there. I was just wanting to move them from there to the default folder if possible, and wondering how to go about it. (This is after I sort out why they are not showing in the first place)

    @fob – are there any specific folders that need a certain setting? I’ve also checked the filenames and they match including case.

  5. Update:
    I updated the CHMOD and it’s all working!

    Now for part 2:
    I want to move all the images from the Cape_Town folder into the default uploads. Some images are referenced by id in the theme, how do I do the move? I can’t just update the filenames since as I mentioned the theme uses id’s as a reference to the images.

  6. That would probably require a plugin or custom script from your database (not WordPress) admin. Essentially, you’d have to change all fields with references to the old path to the new path. Usually, this would mean changing all instances of direct text in your post_content fields. I’m not comfortable enough with SQL update queries to write this for you. I’ll have to think about it and see if I can come up with something.

    You shouldn’t have to change the attachment metadata if you keep the same /year/month/file structure.

    It seems like I remember a plugin to do this at one time, but I can’t seem to find it.

  7. Thanks! I’ll check that out and see if it can do it.

    Cheers

    Alex

  8. why not just leave it as is?

    if you have a lot of traffic from images (google image search). you might lost a lot traffic.
    they (the index) will back eventually, but might not.
    i did this for one of my site, and i kinda regret it.

    not sure, but might work: maybe to migrate using xml export import, i think the attachment will use the new folder structure (but still need to update/change urls in content)

  9. why not just leave it as is?

    if you have a lot of traffic from images (google image search). you might lost a lot traffic.
    they (the index) will back eventually, but might not.
    i did this for one of my site, and i kinda regret it.

    not sure, but might work: maybe to migrate using xml export import, i think the attachment will use the new folder structure (but still need to update/change urls in content)