post meta – problem : copy the same meta for all the articles
You don’t need to check if meta data exists prior to adding/updating it. update_post_meta does this for you. (See Codex) update_post_meta($post_id, $meta_key, $meta_value, $prev_value); The fourth (optional) $prev_value argument, if set, will update only $meta_key-$prev_value pairs. If not set, it will update all values for that $meta_key for that post. If it can’t find that … Read more