Tagged: ,

Viewing 1 reply thread
  • Author
    Posts
    • #7016
      lalit
      Member

      How do I rename a field without losing data?

    • #7022
      Jason
      Keymaster

      Hi @lalit!

      I assume you’re talking about changing the 'field' and not merely the 'label'.

      If so, then you’ll either need to change the meta_key (assuming this is a metabox) in the wp_postmeta table in the database, or make some sort of PHP function that you fire once to migrate the data over to the new field.

      Hope this helps! 🙂

Viewing 1 reply thread
  • You must be logged in to reply to this topic.