How to save an array with one metakey in postmeta?
You don’t need to loop through the values. Just use update_post_meta($post_ID, {key}, {array of vals}), it should do! <?php $poddata = Array( ‘pod_id’ => $this->pod_id, ‘url’ => $this->url, ‘name’ => $this->name, ‘description’ => $this->description, ‘service’ => $this->service, ‘status’ =>$this->status, ‘price’ => $this->price ); //Update inserts a new entry if it doesn’t exist, updates otherwise update_post_meta($post_ID, … Read more