1 Replies - 1500 Views - Last Post: 06 November 2014 - 10:43 AM

#1 4natic  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 05-November 14

Moving Custom Post Meta Data

Posted 06 November 2014 - 05:27 AM

Hi,

This post may very well belong in the SQL database section?

I have a meta box I would like to split into 3 without losing any of its data. I'm wondering if anyone has ever had to do this before?

At the moment the one box model is very counter productive.

Thanks for your input folks.
4natic
Is This A Good Question/Topic? 0
  • +

Replies To: Moving Custom Post Meta Data

#2 4natic  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 05-November 14

Re: Moving Custom Post Meta Data

Posted 06 November 2014 - 10:43 AM

Think I may have got it...

Creating the new custom meta box and changing the meta_key name using phpmyadmin.


Run this query on the database;
UPDATE `wp_postmeta` SET `meta_key` = 'NEW META_KEY' WHERE `meta_key` = 'OLD META_KEY'


Please somebody tell me if I am making a huge mistake. I'm trialling on a dev site at the moment so no chance of a breakdown.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1