• Anyone know of any consequences to manually changing the “post_name” value for image attachments in the “posts” table? I would be doing this manually in the database itself. Is the “post_name” field for attachments really used for anything other than within the attachment page URLs?

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

    (@intrepidweb)

    I hate to be the bump guy, but anyone have any opinions here? I’m about to do this, would love to know if anyone knows of an unintended consequences that might occur.

    Well, you can figure out if there’s a problem on your own by making a backup of your site, changing the values, and then seeing if there are problems. 🙂

    However, AFAIK, you won’t have any issues from changing the slug, as long as you don’t have plugins or themes that rely on it (i.e. there’s nothing in the WordPress core that links attachments to posts by slug – it’s all done based on the ID field in the posts table), so as long as you don’t mess with that you should be fine.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Image Attachment Database Entries’ is closed to new replies.