Hi there,
We have a website build using WooCommerce and toolset. We added custom fields for WooCommerce using Toolset. The field type is File and it has "Allow multiple instaces of this field" set YES .
When we export the post's data, the meta data field contains the value of only last item. We are wondering if there is a way we can export the values of all instance of that post.
If you have a custom field that accepts multiple values, it just means that there can be multiple entries in wp_postmeta with the same key for a post. That is not particular to Toolset, it's just normal WordPress.
If you look at the function get_post_meta for example (https://developer.wordpress.org/reference/functions/get_post_meta/), you'll see the final parameter is whether to return a single value, which if false returns an array of all of the values for the field with that key for that post.
So it sounds like a problem with the tool you use to export the data, which isn't handling multiple entries in wp_postmeta, even though that is just a standard feature of WordPress.
The topic ‘[Closed] Multiple instance values don't get export’ is closed to new replies.