That data is serialised PHP, if you pass in a PHP structure it will be serialised into a string. When you pull it back out, it’s de-serialised automatically, e.g.:
$post_id = current post ID.....
$data = get_post_meta( $post_id, '', true );
To see the structure in a human readable form, use something like this:
echo '<pre>'.print_r( $data, true ).'</pre>';
For information about how you would access the information stored in this $data
variable, please refer to php.net for basic array and object access []
and ->
Related Posts:
- Automatically adding meta data to posts or multiple query help
- Storing a many to many post type relationship in post meta and keeping SQL ability for Joins
- Create Array from custom post type to display a slider
- Query all posts where a meta key does not exist
- Correctly delete posts with meta and attachments [duplicate]
- Storing revisions of metadata for custom post type
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- How can I filter posts by post_parent in the admin?
- Custom Post Type with Input fields to seperate table on database.
- How to create a mini directory in WordPress?
- How Can I save multiple records in same meta key?
- Detect meta value changes when post is updated (post_updated)
- Search everything (posts, pages, tags, cpt, meta)
- Permalinks using event date (year & month) instead of publication date
- Compare 3 custom fields and sort by oldest
- Creating a custom post type upon registration
- Reason action hook won’t work with update_post_meta from frontend form? Alternative?
- Can’t sort order of wp_query with 2 meta keys
- Showing Meta Data for Custom Post Types?
- How to get source of custom meta image?
- Having trouble with custom post type / meta box
- Query for posts from any post type but only add instock products
- update custom post type meta from a shortcode
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Displaying Meta Box Image
- How to keep a check box in custom meta box for custom post type checked by default for add new post?
- Show metabox in custom-post-template depending on taxonomy term?
- ACF Upload Image in repeater from front-end with custom form? – add_post_meta()
- Using date stored as custom field to filter posts displayed in admin
- Meta Box Only in CPT Edit Page, Not in Add New
- get_post_meta is returning image id
- get_template_part() – post-meta not working?
- Metadata for a taxonomy – is there any WordPress way of doing this?
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Populate Custom Fields in a Custom Post Type?
- Insert Multiple Post with Same Publish Button
- Custom meta box data array: foreach not working correctly?
- Undefined Variable – Custom Post Type Meta
- How to check if user meta field is empty in conditional else statement
- How to store multiple values in 1 meta_key with radio input?
- Post image in WordPress not appearing on home page
- changing meta value and meta key of price field
- Posting to a Custom Post Type from front end – user generated content
- Getting meta in editor plugin, and event triggering issue
- Display a CPT based on a metabox selection
- Should wp_postmeta meta_key always be unique for a given post_id?
- Metabox not show in categories custom post type cmb2
- Limit the post for differents custom post type in the same wp_query
- Custom fields for custom post type
- Custom Post Types — $args vs. labels array
- Is there a way to exclude posts based on meta_values?
- Submitting Custom Post Types with custom fields from Front-end form
- How to Echo Metadata Value in Currency Format
- Issue on Working with Metabox – Checkbox to enable Sale Items
- Filter posts by tax (dropdown) and meta value
- Publish and save specific postmeta to a filtered post_type
- Batch Extract Date from post title and put into ACF custom field
- How to handle this specific case of custom post type?
- Save CTP post meta different values each day without overwriting previous values
- get_post_meta returns NULL in front-end, but correct result in back-end
- Meta box data is saved but NOT displayed in the meta box text field. Why?
- How to call a post’s metadata in shortcode.php?
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- HM CMB: Post Select Field for CPT ID
- Getting WordPress to store 0 values for custom post type meta
- Problem Saving Custom Post Type Meta Values
- Update value inside array update_post_meta
- Get_post_custom not fetching value from array wordpress
- Get an array of the number of post per year of a custom post type (WordPress)
- Save data is post using php front end
- Creating a custom post type upon registration for a specific user role
- How to sort by multiple values in a nested WP_Query
- Where is get_post_meta value located?
- How do I create a customised table list of a custom post type (in the admin area)?
- Staggering featured post using ‘sticky’
- add action save post type and update post meta woocommerce
- get_post_meta not working with variable as a post_id for dynamically get the postid
- How to save post_status using action save_post?
- Custom post meta box as a sub form
- Metaboxes in Loop
- Add more custom fields when creating a new custom post type
- Custom meta box data not saving
- Collect custom post in a calendar
- Storing data in a multidimensional array from dynamically generated foreach loop
- Disable Facebook Comments Automatically On CPT
- Problem with ‘save_post’ hook not running
- WordPress custom field images not getting inserted into array
- Howto: use existing post_meta as options for a different metabox (checkboxes or list)
- Meta-Box to add multiple items one at a time and on publish save all
- Values inside a custom field to determine which category posts to display
- How to rewrite CPT-Permalinks the correct way (incorporating meta-box-data)?
- Display custom posts in checkbox list
- Advanced search form with filters for custom taxonomies and custom fields
- Top 30 Songs using Custom Post Type
- Advice Needed for Post Meta Database Efficiency
- Querying meta values within an array
- why get_post_meta is returning 0?
- Save post_parent in a custom post type
- Update an existing post in a custom post type
- Post Meta for Custom Post Types