WordPress.org

Ready to get started?Download WordPress

Forums

Rename attachment titles to match parent post title (3 posts)

  1. jasmil345
    Member
    Posted 1 year ago #

    I have hundreds of images that have the name of the file which is useless, since they are just numbers. I want to rename the attachments to the same name as the parent post.

    Is there a way to bulk do this with mysql?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    What permalink structure are you using? Because if you are using /%postname%/, giving images the same name as their post could cause all kinds of problems.

  3. jasmil345
    Member
    Posted 1 year ago #

    I am using /%postname%/, but I'm not changing the permalinks or filenames. I want to change the titles only. I would love to update the Alt, too, but I'm mainly interested in the titles. I can't find any documentation to mass update attachment titles.

Topic Closed

This topic has been closed to new replies.

About this Topic