Post Meta Values Only Storing Integers
-
Hi, I am having a bit of trouble with custom fields since upgrading to WordPress 6.0. I’ve noticed that since the upgrade, when I add a key-value pair to the Custom Fields on a Post, the key-value will only persist if the value is an integer. I can no longer persist a Custom Field where the value is a string.
I’ve checked the database, and the wp_postmeta#meta_value field is of type
longtextso it’ll happily store strings. And if I add a row to the table directly, it’ll show up in my WordPress admin panel with no problem.It’s only when I try to insert or update a Custom Field within the WordPress admin panel where the value is a string that I experience this issue. Please let me know if there’s a fix. Thank you!
The topic ‘Post Meta Values Only Storing Integers’ is closed to new replies.