I have a question about adding multiple post meta values to a post meta key.
Here is a link to the WordPress
add_post_meta(); function in question.
$unique parameter is a little on the fuzzy side of clarity for me.
Whether or not you want the key to be unique. When set to true, this will ensure that there is not already a custom field attached to the post with $meta_key as its key, and, if such a field already exists, the key will not be added.
If this is set to true, will I be able to add multiple values to a single post meta key?
I am looking to create ONE unique post meta key per post. This key is set as a hidden key. (Prefixed with an underscore - Example:
$meta_key = '_task-name';)
Is it possible to add multiple post meta values to this single unique post meta key, in array format?
So when I fetch this post meta key from the post using
get_post_meta($post_id, $meta_key); one post might have 3 or 4 tasks names assigned to it.
Would I be better off just using Taxonomies and Terms?