如何将现有值更改为新值并保留数据?
我在acf中更改了名称,现在我的新数据没有更新
$post_desc = get_post_meta(get_the_ID(), 'post_desc', true);
$post_id = get_the_ID();
$value = get_post_custom_values(get_the_ID(), $post_desc);
foreach ($value as $values)
update_post_meta( $post_id, 'post_desc', $post_desc );
post_desc-是acf上的新名称