How to save an array with one metakey in postmeta?

Posted by Prem Tiwari | Updated on

You don’t need to loop through the values. Just use update_post_meta($post_ID, {key}, {array of vals}), it should do!

Thats it! When you fetch it for usage, do the following:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers