Okay, I'm pulling my hair out here. I'm trying to use add_post_meta and update_post_meta to store some values. Instead of creating a bunch of rows, I'd like to have one row with an array of data in the meta_value field. But, it appears to me that WP core is incorrectly storing these. If I run an add_post_meta on an array of data, it ends up looking like this in the database:
(Note that beginning s:152 - meaning that it's storing it as a string.)
If I store the same array via add_option(), it correctly stores like so:
Has anyone else encountered this? Are you just "not allowed" to store arrays in the post meta fields?