<?php add_post_meta($post_id, $meta_key, $meta_value, $unique); ?>
Hello, why i cant add to $meta_value an array ? Is there any hack for this ?
<?php add_post_meta($post_id, $meta_key, $meta_value, $unique); ?>
Hello, why i cant add to $meta_value an array ? Is there any hack for this ?
Use the php function serialize to convert the array into a storable string. Then use unserialize to convert it back to an array.
This topic has been closed to new replies.