• 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 longtext so 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!

Viewing 1 replies (of 1 total)
  • Moderator threadi

    (@threadi)

    I can not understand the problem with me. So I suspect it’s a problem caused by a plugin you’re using. Could you try that without any plugins and if necessary change the theme to a standard theme? You should also be able to find the culprit along the way.

Viewing 1 replies (of 1 total)

The topic ‘Post Meta Values Only Storing Integers’ is closed to new replies.