Forums

[resolved] Media Library File URL (3 posts)

  1. weathervane
    Member
    Posted 1 year ago #

    I started a WP site with "Organize my uploads into month- and year-based folders" checked. I needed to change that to all files in /wp-content/uploads/, so I moved the files, and used a search and replace to delete the year/month portions of the path in the database. However, I notice that when selecting a file to edit ("media edit") that its "File URL" field still retains the year/month subfolders, i.e. ".../wp-content/uploads/2010/02/...". The database doesn't return any result when searching for this. So: Where is the File URL information retained?

  2. Joseph
    Member
    Posted 1 year ago #

    It's inside the wp_postmeta table. _wp_attachment_metadata and _wp_attached_file meta keys

  3. weathervane
    Member
    Posted 1 year ago #

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic