Help with Serialized Data
-
Hello,
I am having a very hard time exporting then importing my website. My original theme is ListingPro. In the export file, there is a column called “lp_listingpro_options” and it contains serialized data that I want to separate so it can properly import.I am trying to have separate columns for: tagline, location, business hours, address, latitude, longitude, email, phone, website, social links, price status, price range, price from, price to and video links
Here is an example of a serialized data for one listing:
a:31:{s:12:”tagline_text”;s:0:””;s:8:”gAddress”;s:28:”Orléans, Ottawa, ON, Canada”;s:8:”latitude”;s:10:”45.4558019″;s:9:”longitude”;s:11:”-75.5047333″;s:6:”mappin”;s:0:””;s:5:”phone”;s:15:”(613) 604 -0188″;s:8:”whatsapp”;s:0:””;s:5:”email”;s:23:”[email protected]”;s:7:”website”;s:30:”https://www.charslocstudio.com”;s:7:”twitter”;s:0:””;s:8:”facebook”;s:40:”https://www.facebook.com/charslocstudio/”;s:8:”linkedin”;s:0:””;s:7:”youtube”;s:0:””;s:9:”instagram”;s:40:”https://www.instagram.com/charslocstudio”;s:5:”video”;s:0:””;s:7:”gallery”;s:0:””;s:12:”price_status”;s:11:”inexpensive”;s:10:”list_price”;s:3:”$65″;s:13:”list_price_to”;s:0:””;s:7:”Plan_id”;s:1:”0″;s:16:”lp_purchase_days”;s:0:””;s:11:”reviews_ids”;s:0:””;s:15:”claimed_section”;s:11:”not_claimed”;s:26:”listings_ads_purchase_date”;s:0:””;s:30:”listings_ads_purchase_packages”;s:0:””;s:4:”faqs”;a:2:{s:3:”faq”;a:1:{i:1;s:0:””;}s:6:”faqans”;a:1:{i:1;s:0:””;}}s:14:”business_hours”;a:6:{s:6:”Monday”;a:2:{s:4:”open”;s:7:”10:00am”;s:5:”close”;s:7:”06:00pm”;}s:7:”Tuesday”;a:2:{s:4:”open”;s:7:”10:00am”;s:5:”close”;s:7:”06:00pm”;}s:9:”Wednesday”;a:2:{s:4:”open”;s:7:”10:00am”;s:5:”close”;s:7:”06:00pm”;}s:8:”Thursday”;a:2:{s:4:”open”;s:7:”10:00am”;s:5:”close”;s:7:”06:00pm”;}s:6:”Friday”;a:2:{s:4:”open”;s:7:”09:00am”;s:5:”close”;s:7:”01:00pm”;}s:8:”Saturday”;a:2:{s:4:”open”;s:7:”09:00am”;s:5:”close”;s:7:”01:00pm”;}}s:11:”campaign_id”;s:0:””;s:14:”changed_planid”;s:0:””;s:19:”listing_reported_by”;s:0:””;s:16:”listing_reported”;s:0:””;}Any idea of what php code I can put into the Function Editor and other fields to fix this issue?
- The topic ‘Help with Serialized Data’ is closed to new replies.