Extract a field from an array on MySQL DB on WordPress
-
Hi to everyone!
I’m currently doing a migration from an old theme to a new theme, and I’m in a big trouble.
My old theme (Newspaper from tagdiv) has a field with a Video option for the posts. When I put a video URL, the video shows at the begining of the post (magic!)
Now, I want to migrate this video field to my new theme. For do that, first I have done a custom field on my new theme for insert the Video URL and show it on the posts. (and it works!)
But my big trouble and the only problem that I have is when I try to export this field with WP All Export -Import plugin. I have this on MySQL Database “wp_postmeta“‘s table:
INSERT INTO
wp_postmeta(
meta_id,
post_id,
meta_key,
meta_value`) VALUES
(213286, 18405, ‘td_post_video’, ‘a:1:{s:8:”td_video”;s:27:”https://vimeo.com/273779372″;}’),`How the hell I can “extract” the Vimeo URL and POst ID to do later the import to my new Video field on my new theme ??? I think this is an array or something else. I study MySQL, but this escapes my knowledge. Crazy!
Thank you very much in advance.
The page I need help with: [log in to see the link]
- The topic ‘Extract a field from an array on MySQL DB on WordPress’ is closed to new replies.