Problem with serialized arrays in custom meta

See my comment on your question above. I just realized that if you’re ending up with those special characters in the database, most likely you’re not sanitizing the data before saving it into the database. Try running htmlentities() over all the values that you’re saving into that serialized array, and see if you end up with a readable result.

Leave a Comment