Use unserialize() to convert it into an array.
$mydata="a:5:{s:9:"engine_id";a:1:{i:0;s:9:"300000225";}s:15:"transmission_id";a:1:{i:0;s:6:"257691";}s:5:"plant";a:1:{i:0;s:23:"Oshawa, Ontario, Canada";}s:15:"Manufactured in";a:1:{i:0;s:6:"CANADA";}s:22:"Production Seq. Number";a:1:{i:0;s:6:"151411";}}";
$mydata = unserialize($mydata);
echo $mydata['Manufactured in'][0];
Edit– Related thought- something to keep in mind when storing meta data serialized like this is that you limit your ability to use that data in queries, if that’s a concern for you. for instance, it’s not so easy to write queries like “show me all parts manufactured in Canada”, or order results by engine id, since that data is tucked away with a bunch of other data in one field.
Related Posts:
- How to store post meta in an array?
- get_*_meta doesn’t always return an array
- Unset field from an array not working as expected
- Post meta as array looks like string instead of array
- Time & Date on Post – Time Ago Custom Function
- Can A Post Meta Field Store multiple values that are not in an array?
- Array of user ids to list of user names
- update_post_meta() updating nested array in Multidimensional array with empty sub-array
- How can I update this array built from post meta data?
- What format is this and how to get value “lal” and “pila” from it
- How to get posts by meta value as multi-dimensional array?
- Multiple meta key and value search in the query
- Fetching array of postmeta with $wpdb and in_array conditional
- wp_postmeta store multiple values in one key [closed]
- How do I retrieve the slug of the current page?
- Most efficient way to get posts with postmeta
- Get posts by meta value
- Explanation of update_post_(meta/term)_cache
- How to save an array with one metakey in postmeta?
- WordPress is stripping escape backslashes from JSON strings in post_meta
- How can I get the post ID from a WP_Query loop?
- Check if Post Title exists, Insert post if doesn’t, Add Incremental # to Meta if does
- How to update_post_meta value as array
- Adding meta tag without plugin
- What’s the point of get_post_meta’s $single param?
- What is the different between an attachment in wp_posts and an attachment in wp_postmeta?
- How to edit a post meta data in a Gutenberg Block?
- Sanitizing integer input for update_post_meta
- post formats – how to switch meta boxes when changing format?
- Execute action after post is saved with all related post_meta records (data)
- Lack of composite indexes for meta tables
- Get a single post by a unique meta value
- if get_post_meta is empty do something
- How we get_post_meta without post id
- How get post id from meta value
- What is the code to get the download link for a product in WooCommerce?
- Safe to delete blank postmeta?
- advanced custom fields update_field for field type: Taxonomy
- update_post_meta not saving when value is zero
- Content hooks vs User hooks
- Meta compare with date (stored as string) not working
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- Trying to get custom post meta through Jetpack JSON API [closed]
- How to update/insert custom field(post meta) data with wordpress REST API?
- How can merge two arrays values in one array and save in database
- Restrict post edit/delete based on user ID and custom field
- get_post_meta returning empty string when data shows in the database
- publish_post action hook doesn’t give post_meta_data
- Remove WordPress.org Meta link
- Remove post meta keys
- How to access the post meta of a post that has just been published?
- Why time functions show invalid time zone when using ‘c’ time format?
- Why is get_post_meta returning an array when I specify it as single?
- How to update/delete array in post meta value?
- How to get all term meta for a taxonomy – getting term_meta for taxonomy
- Adding an assisting editor box to Post page
- Is it possible to store arrays in a custom field?
- delete unused postmeta
- Should I sanitize custom post meta if it is going to be escaped later?
- How to update single value in multi dimensional Post Meta?
- Add post meta based on another post meta value before publish post
- How do I retrieve multi-dimensional arrays from the wp_postmeta table, & display on a website?
- Front-end update_post_meta snippet displays white screen?
- Query between two meta values?
- Save both current and new version of post meta
- Get Advanced Custom Fields values before saving [closed]
- Give extra post-meta to RSS feeds
- How to get meta value in wp_attachment_metadata
- WP REST API “rest_no_route” when trying to update meta
- Clean up output added via wp_head()
- List posts under meta_value heading
- Why am I getting an infinite loop with have_posts?
- get_post_meta – get a single value
- delete value 0 in post meta [closed]
- update_post_meta from data in multidimensional array created from a form
- Can I safely delete a record, manually, in the wp postmeta table?
- What action hook updates post meta?
- Can’t translate the post meta data (Date) in another language
- get_post_meta / update_post_meta array
- WP Meta Query for some meta (array) values
- adding a URL to a post meta
- Exclude a category from the filed under list
- Compare two meta key values against each other inside the get_posts array?
- Short of raw SQL, can I query for multiple attachment metadata that have a given array key?
- How do I access post meta data when publishing a new post in Gutenberg?
- update_post_meta() not working when used with WordPress action
- Using Advanced Custom Field (ACF) to insert meta description on each page
- Triple meta_key on custom SELECT query
- get_post_custom()
- Adding meta data to an attachment post
- update_post_meta not adding anything.(Nor add_post_meta)
- loop through all meta keys with get_post_meta
- Get posts by meta value with date
- How to add meta tag to wordpress posts filter?
- Are multiple values from get_post_meta guaranteed to be ordered?
- Automatically adding meta data to posts or multiple query help
- Identifying Importer Posts
- Get updated post meta on save_post action?
- Get post from meta_key and meta_value
- Add a post metadata if only the key and value does not exist