Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author sparkweb

    (@sparkweb)

    @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.

    Thread Starter Palagrin

    (@palagrin)

    Hi,

    tried it again – still not working. Odd.

    Plugin Author sparkweb

    (@sparkweb)

    What’s the field name you are trying to rename? And to what value are you trying to change it?

    Thread Starter Palagrin

    (@palagrin)

    ASIN to UK-ASIN and Pages to UKPages.

    Plugin Author sparkweb

    (@sparkweb)

    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

    Thread Starter Palagrin

    (@palagrin)

    They are custom fields for a custom post type. Let me try your demo.

    Thread Starter Palagrin

    (@palagrin)

    Okay my process so far has been exactly the same as yours in the demo – will try deactivating plugins now.

    Thread Starter Palagrin

    (@palagrin)

    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!

    Plugin Author sparkweb

    (@sparkweb)

    Glad you got it working. Thanks for letting me know.

    Thread Starter Palagrin

    (@palagrin)

    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.

    Plugin Author sparkweb

    (@sparkweb)

    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.

    Thread Starter Palagrin

    (@palagrin)

    Okay, thanks so much again. Shame it isn’t working 🙁

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Custom field renaming not working’ is closed to new replies.