Hi,
I have a large number of meta fields stored under a post, i want to update values through code just like update_post_meta(123,'metakey', 'metavalue')
But that doesn’t seems to be working fine. because fields are not saved in postmeta as plain..
You’ve got the right idea, but it really depends on the field you’re trying to update. Everything stores simply in the database with the exception of group repeater fields which store as serialized data, which you’ll probably want to pull the array, modify it, and then update using the new array.
This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies. Find out more.