If I understand you correctly, I don’t think this is a WordPress issue, just PHP.
When you var_export
into the textarea, then submit that via POST
, what you then have is not an array but a string. You can check is_string
instead of is_array
to confirm this.
If you want it to be an array again, you have to explicitly cast it as such:
$actors_array = $_POST['actors_array']; // $actors_array is a string
$actors_array = (array)$actors_array // $actors_array is now an array
Related Posts:
- Can I query custom meta data through WP_Query
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- WP doesn’t show Array Custom Fields?
- How do I search an array stored in a custom-field using WP_Query?
- Is it possible to store arrays in a custom field?
- use get_posts to get custom field data, but in one array
- Saving an array in a single custom field
- Get specific custom field keys from a post and put into an array
- WP Query Returning All Posts
- Passing Custom Field Data as Array to be Saved (Resulting Custom Field Array is inconsistent)
- Run a check for multiple meta key values
- Create an Array of Specific Custom Post Meta
- Remove Body Classes
- Sort alphabetically by custom field
- change order of images attached to post
- query_posts with meta_value
- Displaying an ACF list of users
- Custom field to array?
- Show array of meta_value in Edit Post Coloum
- How to Convert Custom Fields from Text to Array?
- Custom field outside the loop and inside an array
- Get custom post fields from multiple metaboxes
- Working with multiple values and metaboxes
- Custom Field: how to save array of multiple key-values in WordPress
- How to save array option as text and not integer?
- Should I store arrays in custom fields or create custom tables?
- How do I use foreach to get content from a custom-field in multiple posts?
- Adding custom field to an array
- How do i output images from URL’s added to the same custom field key
- Extract array from custom field
- Build Array from Input Fields question
- Custom fields: Split data from single custom field’s sub-array to separate custom fields when saving post
- Meta Query with AND & OR?
- Adding another state (spam, reject, approve) to wordpress comments?
- Filter archive.php by custom meta
- Custom text-only header
- How to save custom fields for attachments
- How to get a meta value from all post
- Adding existing user custom field value to a woocommerce product [closed]
- Exclude custom post type from search by custom field value?
- Adding Custom Text Area to WooCommerce Product
- Get multiple custom field values in a $wpdb query [duplicate]
- add meta box using function.php
- Order by value in serialized custom field
- Custom image sizes for custom field media uploads
- converting custom field date format
- Buddypress Add unserialized Profile Fields in Members Loop [closed]
- Add Paypal Button programmatically
- How do I use wp_query for WordPress search?
- Nav Menu – Add class based on meta keys
- Eliminating the appearance of a specific custom field in a post
- Conditionally hide or show woocommerce product variation in fontend by custom field
- custom meta box text field: how to limit to alpha or numeric only
- Accessing loop functions (e.g the_title or the_content) from post ID
- custom avatar removal
- Excluding Specific Fields from Profile Builder Registration Form
- How to add upload video option in wordpress for user?
- Set post to unpublished after one week depending on condition
- URL Rewrite fires when retrieving a custom value?
- Efficiently sort only certain categories by custom field
- How can I do a variable for meta_query?
- How to list Category list in ACF Pro’s Select Field to choose from [closed]
- Singleton Custom Field (Meta Box)
- Display custom field & value correctly on page
- Displaying custom filed content instead of post content
- Copy price categories to custom field
- Save all the post tags inside a custom field
- Use Advanced Custom Fields – replace line of code that hardcodes the tag into the template
- How to update a custom field in all posts with the value of another custom field in the same post?
- Advanced Custom Fields and Post Meta Fields Relation
- Set featured image from custom field URL
- Best Way to get facebook share count and update using wp_schedule_event or any other method
- Filter posts by custom field (Advanced Custom Fields)
- Custom metabox not working
- How to get custom image field of specific post id
- Selectively hiding or allowing thumbnails of featured images on front page
- wp_get_attachment_image_src() with advanced custom fields returning empty
- How to update custom field of a posts in a particular category
- Woocommerce products search with custom fields
- Convert author metadata to a custom field
- Custom pages or Custom Posts
- get_avatar filter is not working as per requirement
- Saving Custom Field that includes Quotation marks
- WordPress Admin – Automatically Sort Custom Posts by Custom Field Date Value in d-m-Y Fomat
- how to execute custom field for structured data?
- Saving custom form data
- select user with all meta field and field value. I am use Below Query for this ,So any of know another way to fast query instead of below query?
- Echo out custom fields in comments
- Why WordPress takes time to make request to save post?
- Need help getting a certain value out of a multi dimensional array
- Show comon custom field results?
- Display Child Page with custom fields within Parent Page
- Convert all dates in field to Unix time, except those already in Unix time
- get_post_custom_values not working
- Pagination not displaying correct number of pages
- Show div based on custom meta value
- Assign class to Drop Down Selections in WooCommerce Products Custom Fields
- Show/Hide Featured Image or replace it with custom field [closed]
- Archive for custom fields?
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?