• Resolved Sellerto

    (@sellerto)


    This plugin is so nearly there but I cannot batch rename titles exactly the way I want it.

    I have filenames with underscores and I do not want any uppercase. But, sadly, I cannot get this plugin to stop removing underscores and replacing with spaces.

    Also, it would be lovely to have the GUIDs updated as well. All my image filenames are unique so this should create no issue.

    https://www.ads-software.com/plugins/media-rename/

Viewing 1 replies (of 1 total)
  • Thread Starter Sellerto

    (@sellerto)

    Resolved

    In class-media-rename.php replace the below

    // Convert filename to post title
    static function filename_to_title($filename) {
    return ucwords( preg_replace(‘~[^a-zA-Z0-9]~’, ‘ ‘, $filename) );
    }

    with this

    // Convert filename to post title
    static function filename_to_title($filename) {
    return $filename;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to rename exactly the way I want it’ is closed to new replies.