I have a php script where I want to save a value for a custom field for a taxonomy.
I am trying using:
update_field(‘field_55ea58bfea9fc’, $value, $tag_id);
with no luck: the values in wp_options are not updated.
what am I doing wrong?
What is the taxonomy and what is in
The post id (where you have $tag_id) should be
John, thank you so much!
$tag_id was = $term_id
my bad for being unfamiliar with the proper terms.
I did prefix it with the $taxonomy_slug like you explained and now it works perfectly.
I figured that $tag_id was $term_id and that you were just misting the tax prefix. It’s an easy thing to overlook until you get used to it.