@palagrin,
This is interesting. I tried it on my local install and it also didn’t work. I made a couple changes that shouldn’t have made any difference and then it started to work. So I’m really not exactly sure what I did to fix it but it seems to be working now. Can you try 1.9.1 and see if that works better for you?
Make sure to select the posts that you want to change.
Hi,
tried it again – still not working. Odd.
What’s the field name you are trying to rename? And to what value are you trying to change it?
ASIN to UK-ASIN and Pages to UKPages.
Are these pages or another custom post type? Is there another plugin that could be interfering? I did a little demo to show you exactly how I’m doing it to make sure neither of us are missing a step: http://quick.as/kzzsro4
They are custom fields for a custom post type. Let me try your demo.
Okay my process so far has been exactly the same as yours in the demo – will try deactivating plugins now.
Okay…looks like it has worked. Odd. I only deactivated W3 Total Cache, which I have been doing the last few times…and it looks like something has happened. Odd. May have had something to do with it caching it to the old value after I reactivated the plugin? I can’t imagine what happened. Odd. Sorry to take up your time, and thanks for the plugin!
Glad you got it working. Thanks for letting me know.
Hi again
Have just reviewed the site and have noticed that the custom field names have not, in fact, changed. I must have mistaken myself or somehow missed it. I’ve not tried to change the name with all plugins deactivated, but I’m still encountering the problem. Seems very odd.
I think the easiest solution here for you might be to do a quick sql query in your database. Or put this in your functions file:
global $wpdb;
$sql = "UPDATE $wpdb->postmeta SET meta_key = 'NEWFIELDNAME' WHERE meta_key = 'OLDFIELDNAME'";
$wpdb->query($sql);
Then open a page on the site, then remove the code from functions.php.
Okay, thanks so much again. Shame it isn’t working 🙁