• I was trying to hide wp-content/uploads/ from my site by changing the file path to /media instead using this snippet:

    update_option(‘upload_url_path’, ‘/media’);

    After seeing that it broke the site, I deleted the snippet but the issue is still there. Help

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter edavis10

    (@edavis10)

    I got the images to re-appear by adding everything to a media folder in my ftp. But I just want to go back to how it was.

    Use this to reset the option value:

    update_option('upload_url_path', '/wp-content/uploads');

    Alternatively, you can also change this in the options table directly in the database. To do this, you need access to the database, e.g. via phpmyadmin. Your hoster’s support can help with this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tried to change media URL – broke site’ is closed to new replies.